Test results for Linux |
Test for xmlfy argument handling inside a DTD schema file.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd
Team, Won, Lost, Drawn "Barcelona", 5, 1, 2 "Manchester United", 4, 2, 2 ,,, "AC Milan", 2, 2, 4 " Rail Madrid", 2, 2, 4
<!-- xmlfy-args: -F2 , -q -t -s --> <!ELEMENT football (heading) (match*)> <!ELEMENT heading (team, won, lost, drawn)> <!ELEMENT match (team, won, lost, drawn)> <!ELEMENT team (#PCDATA)> <!ELEMENT won (#PCDATA)> <!ELEMENT lost (#PCDATA)> <!ELEMENT drawn (#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE football SYSTEM "schema.dtd"> <football> <heading> <team>Team</team> <won>Won</won> <lost>Lost</lost> <drawn>Drawn</drawn> </heading> <match> <team>Barcelona</team> <won>5</won> <lost>1</lost> <drawn>2</drawn> </match> <match> <team>Manchester United</team> <won>4</won> <lost>2</lost> <drawn>2</drawn> </match> <match> <team></team> <won></won> <lost></lost> <drawn></drawn> </match> <match> <team>AC Milan</team> <won>2</won> <lost>2</lost> <drawn>4</drawn> </match> <match> <team>Rail Madrid</team> <won>2</won> <lost>2</lost> <drawn>4</drawn> </match> </football> <football_summary> <version>1.5.7</version> <timestamp> <start>Mon Feb 3 23:37:11 2020</start> <end>Mon Feb 3 23:37:11 2020</end> </timestamp> <md5_input>f9ebab051769fda3e1fd9c16213aaaa1</md5_input> <md5_output>190897ea68247d98af729a9bfee632d9</md5_output> <sha512_input>23334790845cccc13406748378383393ae095da0b4a906f218f8d2d94877b00ce7d8798a38f54f8dff5cef55bd1c5b8c7343399bcfa8e2e141ab528a1c4dcd0a</sha512_input> <sha512_output>3cdfcbe4b6f8b07e00f91aace23da7a3ce3b871b79c347ae6d6b429f3607cfd014bd505878affbcd45516a85efd8e3aab2951160ee3c9b3ccc7490bce38bfcdb</sha512_output> <args> <command> <arg>xmlfy</arg> <arg>-X</arg> <arg>newline</arg> <arg>unix</arg> <arg>-S</arg> <arg>schema.dtd</arg> </command> <schema> <arg>-F2</arg> <arg>,</arg> <arg>-q</arg> <arg>-t</arg> <arg>-s</arg> </schema> </args> <separator> <level1> <delimiter>NEWLINE</delimiter> </level1> <level2> <delimiter>,</delimiter> </level2> </separator> <schema> <default>false</default> <file>schema.dtd</file> <interpreter>DTD</interpreter> <parent> <name>football</name> <matchmode>DEFAULT</matchmode> <elements> <heading> <match_control>MATCH_ONE</match_control> <instance1> <fields>4</fields> </instance1> </heading> <match> <match_control>MATCH_NONE_OR_MANY</match_control> <instance1> <fields>4</fields> </instance1> </match> </elements> </parent> <records> <elements> <heading> <total>1</total> <instance1>1</instance1> </heading> <match> <total>5</total> <instance1>5</instance1> </match> </elements> <read>7</read> <expelled>0</expelled> <matched>6</matched> <unmatched>0</unmatched> <ignoredblank>1</ignoredblank> <printed>6</printed> </records> </schema> </football_summary>