Test results for Solaris x86 |
Test for xmlfy argument handling inside a XSD schema file.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.xsd
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 --> <xs:schema> <xs:element name="soccer"> <xs:sequence> <xs:element name="heading" type="summaryType" /> <xs:element name="match" type="summaryType" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:element> <xs:complexType name="summaryType"> <xs:sequence> <xs:element name="team" type="xs:string" /> <xs:element name="won" type="xs:string" /> <xs:element name="lost" type="xs:string" /> <xs:element name="drawn" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema>
<?xml version="1.0" encoding="UTF-8"?> <soccer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schema.xsd"> <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> </soccer> <soccer_summary> <version>1.5.6</version> <timestamp> <start>Mon Apr 15 12:33:47 2013</start> <end>Mon Apr 15 12:33:47 2013</end> </timestamp> <md5_input>f9ebab051769fda3e1fd9c16213aaaa1</md5_input> <md5_output>b1f4b2803b5ff8f9392b554d884068b1</md5_output> <sha512_input>23334790845cccc13406748378383393ae095da0b4a906f218f8d2d94877b00ce7d8798a38f54f8dff5cef55bd1c5b8c7343399bcfa8e2e141ab528a1c4dcd0a</sha512_input> <sha512_output>bf95aedb101119c4cc0f1132449d39e852e790851e59a5dcd9c7a25fcb644ef92634794cb1661b3f2401763935877be04632a821b97d8f2f45957bb8ce21e4f6</sha512_output> <args> <command> <arg>xmlfy</arg> <arg>-X</arg> <arg>newline</arg> <arg>unix</arg> <arg>-S</arg> <arg>schema.xsd</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.xsd</file> <interpreter>XSD</interpreter> <parent> <name>soccer</name> <matchmode>DEFAULT</matchmode> <elements> <match> <match_control>MATCH_NONE_OR_MANY</match_control> <instance1> <fields>4</fields> </instance1> </match> <heading> <match_control>MATCH_ONE</match_control> <instance1> <fields>4</fields> </instance1> </heading> </elements> </parent> <records> <elements> <match> <total>5</total> <instance1>5</instance1> </match> <heading> <total>1</total> <instance1>1</instance1> </heading> </elements> <read>7</read> <expelled>0</expelled> <matched>6</matched> <unmatched>0</unmatched> <ignoredblank>1</ignoredblank> <printed>6</printed> </records> </schema> </soccer_summary>