Test results for Solaris x86 |
Test for DTD schema wildcard handling at the root element level.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd -R .
Word. Two words. Now three words. This is four words.
<!ELEMENT paragraph (one_word_sentence*) (multi_word_sentence*)> <!ELEMENT one_word_sentence (word)> <!ELEMENT multi_word_sentence (startword, middleword*, endword)> <!ELEMENT word (#PCDATA)> <!ELEMENT startword (#PCDATA)> <!ELEMENT middleword (#PCDATA)> <!ELEMENT endword (#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE paragraph SYSTEM "schema.dtd"> <paragraph> <one_word_sentence> <word>Word</word> </one_word_sentence> <multi_word_sentence> <startword>Two</startword> <endword>words</endword> </multi_word_sentence> <multi_word_sentence> <startword>Now</startword> <middleword>three</middleword> <endword>words</endword> </multi_word_sentence> <multi_word_sentence> <startword>This</startword> <middleword>is</middleword> <middleword>four</middleword> <endword>words</endword> </multi_word_sentence> </paragraph>