Test results for Linux

test_004050_xsd_line

Test description

Test for XSD schema basic wildcard handling.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -S schema.xsd -R . -s

Input data

Word. Two words. Now three words. This is four words.

Schema

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://xmlfy.sourceforge.net"
           xmlns="http://xmlfy.sourceforge.net"
           elementFormDefault="qualified">
  <xs:element name="paragraph">
    <xs:sequence>
      <xs:element name="sentence" type="sentenceType" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:element>
  <xs:complexType name="sentenceType">
    <xs:sequence>
      <xs:element name="startword" type="xs:string" />
      <xs:element name="middleword" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="endword" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>

Output result

<?xml version="1.0" encoding="UTF-8"?>
<paragraph xmlns="http://xmlfy.sourceforge.net"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://xmlfy.sourceforge.net schema.xsd">
  <sentence>
    <startword>Two</startword>
    <endword>words</endword>
  </sentence>
  <sentence>
    <startword>Now</startword>
    <middleword>three</middleword>
    <endword>words</endword>
  </sentence>
  <sentence>
    <startword>This</startword>
    <middleword>is</middleword>
    <middleword>four</middleword>
    <endword>words</endword>
  </sentence>
</paragraph>
<paragraph_summary>
  <version>1.5.7</version>
  <timestamp>
    <start>Wed Feb  5 22:23:01 2020</start>
    <end>Wed Feb  5 22:23:01 2020</end>
  </timestamp>
  <md5_input>7bc606c832ab7ba5f1deafea3354b0c8</md5_input>
  <md5_output>2672e54d8bd914bd3d34d3063492ae59</md5_output>
  <sha512_input>e17ba50ed3770c32ae9b914c9e4ccf4d15474e55fa7e8298b8f88d904febcd3c93fe71c9051bdda81d93348c0bc2fab4c34a5b616bcbd30154f61381e1d05558</sha512_input>
  <sha512_output>bb3ed9ed354c044fcd5f034f46cd8e271eaf35d21849550494e1348529b94b302e8ebd719d9b5d1a941f0d032e0159e6cfe1d01142e008e6920e9a7ce81367c2</sha512_output>
  <args>
    <command>
      <arg>xmlfy</arg>
      <arg>-X</arg>
      <arg>newline</arg>
      <arg>unix</arg>
      <arg>-S</arg>
      <arg>schema.xsd</arg>
      <arg>-R</arg>
      <arg>.</arg>
      <arg>-s</arg>
    </command>
    <schema>
    </schema>
  </args>
  <separator>
    <level1>
      <delimiter>.</delimiter>
    </level1>
    <level2>
      <delimiter>WHITESPACE</delimiter>
    </level2>
  </separator>
  <schema>
    <default>false</default>
    <file>schema.xsd</file>
    <interpreter>XSD</interpreter>
    <parent>
      <name>paragraph</name>
      <matchmode>DEFAULT</matchmode>
      <elements>
        <sentence>
          <match_control>MATCH_ONE_OR_MANY</match_control>
          <instance1>
            <fields>3</fields>
          </instance1>
        </sentence>
      </elements>
    </parent>
    <records>
      <elements>
        <sentence>
          <total>3</total>
          <instance1>3</instance1>
        </sentence>
      </elements>
      <read>5</read>
      <expelled>0</expelled>
      <matched>3</matched>
      <unmatched>1</unmatched>
      <ignoredblank>1</ignoredblank>
      <printed>3</printed>
    </records>
  </schema>
</paragraph_summary>

Goto:   Top of page.   Section "Environment".   Section "Summary".   Section "Test cases".