Test results for Win32 Console |
Test for RNC schema wildcard handling at the root element level.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.rnc -R .
Word. Two words. Now three words. This is four words.
start = paragraph paragraph = element paragraph { one_word_sentence* ¦ multi_word_sentence* } one_word_sentence = element one_word_sentence { word } multi_word_sentence = element multi_word_sentence { startword, middleword*, endword } word = element word { text } startword = element startword { text } middleword = element middleword { text } endword = element endword { text }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE paragraph SYSTEM "schema.rnc"> <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>