Test results for Solaris x86

test_003050_rnc_line

Test description

Test for RNC schema basic wildcard handling.

Test status

 Pass

Run command

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

Input data

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

Schema

start = paragraph
paragraph = element paragraph { sentence+ }
sentence = element sentence { startword, middleword*, endword }
startword = element startword { text }
middleword = element middleword { text }
endword = element endword { text }

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paragraph SYSTEM "schema.rnc">
<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:31 2013</start>
    <end>Mon Apr 15 12:33:31 2013</end>
  </timestamp>
  <md5_input>7bc606c832ab7ba5f1deafea3354b0c8</md5_input>
  <md5_output>387ee6b755be589f9c78c9281a6742ad</md5_output>
  <sha512_input>e17ba50ed3770c32ae9b914c9e4ccf4d15474e55fa7e8298b8f88d904febcd3c93fe71c9051bdda81d93348c0bc2fab4c34a5b616bcbd30154f61381e1d05558</sha512_input>
  <sha512_output>d3b2dfdb338aaea432fb395cf995b6c59c563da5a5b91427c4ea3df305ee4f12705410e9ed1970dadc46c08f1a6f810b0024b09032b02e7fb50ec30e935c0601</sha512_output>
  <args>
    <command>
      <arg>xmlfy</arg>
      <arg>-X</arg>
      <arg>newline</arg>
      <arg>unix</arg>
      <arg>-S</arg>
      <arg>schema.rnc</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.rnc</file>
    <interpreter>RNC</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".