Test results for Solaris x86

test_002051_dtd_line_alt1

Test description

Test for DTD schema wildcard handling.

Test status

 Pass

Run command

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

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>
    <endword>Word</endword>
  </sentence>
  <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>

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