diff options
Diffstat (limited to 'tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd')
-rw-r--r-- | tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd new file mode 100644 index 0000000..56539d0 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!ELEMENT root ANY> + +<!ELEMENT e EMPTY> + +<!ELEMENT once (e)> +<!ELEMENT twice (e,e)> + +<!ENTITY % once-or-twice-a "(e,(e)?)"> +<!ENTITY % once-or-twice-b "((e),e?)"> +<!ENTITY % once-or-twice-c "((e),(e)?)"> +<!ENTITY % once-or-twice-d "(((e)),e?)"> +<!ENTITY % once-or-twice-e "(e,(((e)))?)"> + +<!-- disallowed by spec; a document error, parser needn't report --> +<!-- (e?,e) --> + +<!ELEMENT once-or-twice-a %once-or-twice-a;> +<!ELEMENT once-or-twice-b %once-or-twice-b;> +<!ELEMENT once-or-twice-c %once-or-twice-c;> +<!ELEMENT once-or-twice-d %once-or-twice-d;> +<!ELEMENT once-or-twice-e %once-or-twice-e;> + +<!-- disallowed by spec; a document error, parser needn't report --> +<!-- + <!ELEMENT once-or-twice-X (Xonce;|Xtwice)> + ... above, 'X' should be a percent sign but this comment + is being nice to those parsers that try to parse comments + (they shouldn't) +--> + +<!ENTITY % once-or-more-a "(e+)"> +<!ENTITY % once-or-more-b "(e,e*)"> +<!ENTITY % once-or-more-c "((e)+)"> +<!ENTITY % once-or-more-d "((e),e*)"> +<!ENTITY % once-or-more-e "(e,(e)*)"> + +<!ELEMENT once-or-more-a %once-or-more-a;> +<!ELEMENT once-or-more-b %once-or-more-b;> +<!ELEMENT once-or-more-c %once-or-more-c;> +<!ELEMENT once-or-more-d %once-or-more-d;> +<!ELEMENT once-or-more-e %once-or-more-e;> |