Test results for Win32 Console |
Test for hierarchical element handling in a DTD schema.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd -A number
1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9
<!ELEMENT command (line_a) (line_b)> <!ELEMENT line_a (a, b, c)> <!ELEMENT line_b (b, c, line_a, d)> <!ELEMENT a (#PCDATA)> <!ELEMENT b (#PCDATA)> <!ELEMENT c (#PCDATA)> <!ELEMENT d (#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE command SYSTEM "schema.dtd"> <command> <line_a number="1"> <a number="1">1</a> <b number="1">2</b> <c number="1">3</c> </line_a> <line_b number="1"> <b number="1">1</b> <c number="1">2</c> <line_a number="1"> <a number="1">3</a> <b number="1">4</b> <c number="1">5</c> </line_a> <d number="1">6</d> </line_b> </command>