Test results for Solaris x86

test_002050_dtd_line

Test description

Test for DTD schema basic wildcard handling.

Test status

 Pass

Run command

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

Input data

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

Schema

<!ELEMENT paragraph (sentence+)>
<!ELEMENT sentence (startword, middleword*, endword)>
<!ELEMENT startword (#PCDATA)>
<!ELEMENT middleword (#PCDATA)>
<!ELEMENT endword (#PCDATA)>

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paragraph SYSTEM "schema.dtd">
<paragraph>
  <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.6</version>
  <timestamp>
    <start>Mon Apr 15 12:33:11 2013</start>
    <end>Mon Apr 15 12:33:11 2013</end>
  </timestamp>
  <md5_input>7bc606c832ab7ba5f1deafea3354b0c8</md5_input>
  <md5_output>5ae623c69a3a13fbaa14e5ef732fef1d</md5_output>
  <sha512_input>e17ba50ed3770c32ae9b914c9e4ccf4d15474e55fa7e8298b8f88d904febcd3c93fe71c9051bdda81d93348c0bc2fab4c34a5b616bcbd30154f61381e1d05558</sha512_input>
  <sha512_output>7775a90807fd934112ebb78f03a26b5ce6a5afa309ff7f10a532eeca1b74418c8cb13a644000f0540b8c7b534330c1de6ecc4a11964aebf354ddf5b249ab25ad</sha512_output>
  <args>
    <command>
      <arg>xmlfy</arg>
      <arg>-X</arg>
      <arg>newline</arg>
      <arg>unix</arg>
      <arg>-S</arg>
      <arg>schema.dtd</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.dtd</file>
    <interpreter>DTD</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".