source: trunk/QA/xmlconf/sun/valid/dtdtest.dtd @ 450

Last change on this file since 450 was 450, checked in by cameron, 9 years ago

Include xmlconf

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<!ELEMENT root ANY>
4
5<!ELEMENT e EMPTY>
6
7<!ELEMENT once (e)>
8<!ELEMENT twice (e,e)>
9
10<!ENTITY % once-or-twice-a "(e,(e)?)">
11<!ENTITY % once-or-twice-b "((e),e?)">
12<!ENTITY % once-or-twice-c "((e),(e)?)">
13<!ENTITY % once-or-twice-d "(((e)),e?)">
14<!ENTITY % once-or-twice-e "(e,(((e)))?)">
15
16<!-- disallowed by spec; a document error, parser needn't report -->
17<!-- (e?,e) -->
18
19<!ELEMENT once-or-twice-a %once-or-twice-a;>
20<!ELEMENT once-or-twice-b %once-or-twice-b;>
21<!ELEMENT once-or-twice-c %once-or-twice-c;>
22<!ELEMENT once-or-twice-d %once-or-twice-d;>
23<!ELEMENT once-or-twice-e %once-or-twice-e;>
24
25<!-- disallowed by spec; a document error, parser needn't report -->
26<!--
27    <!ELEMENT once-or-twice-X (Xonce;|Xtwice)>
28        ... above, 'X' should be a percent sign but this comment
29        is being nice to those parsers that try to parse comments
30        (they shouldn't)
31-->
32
33<!ENTITY % once-or-more-a "(e+)">
34<!ENTITY % once-or-more-b "(e,e*)">
35<!ENTITY % once-or-more-c "((e)+)">
36<!ENTITY % once-or-more-d "((e),e*)">
37<!ENTITY % once-or-more-e "(e,(e)*)">
38
39<!ELEMENT once-or-more-a  %once-or-more-a;>
40<!ELEMENT once-or-more-b  %once-or-more-b;>
41<!ELEMENT once-or-more-c  %once-or-more-c;>
42<!ELEMENT once-or-more-d  %once-or-more-d;>
43<!ELEMENT once-or-more-e  %once-or-more-e;>
Note: See TracBrowser for help on using the repository browser.