summaryrefslogtreecommitdiff
path: root/test/valid/dtds/notes.dtd
diff options
context:
space:
mode:
Diffstat (limited to 'test/valid/dtds/notes.dtd')
-rw-r--r--test/valid/dtds/notes.dtd19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/valid/dtds/notes.dtd b/test/valid/dtds/notes.dtd
new file mode 100644
index 0000000..b40a8ac
--- /dev/null
+++ b/test/valid/dtds/notes.dtd
@@ -0,0 +1,19 @@
+<!--
+This gets parsed without complaint:
+<!ELEMENT pfx:notes ( #PCDATA | note | pfx:note )* >
+-->
+
+<!--
+This triggers a diagnostic:
+notes.dtd:13: validity error : Definition of notes has duplicate
+references of note
+<!ELEMENT pfx:notes ( #PCDATA | pfx:note | note )* >
+-->
+
+<!ELEMENT pfx:notes ( #PCDATA | pfx:note | note )* >
+
+<!ATTLIST notes
+ xmlns:pfx CDATA #FIXED 'http://namespace/uri/here'
+>
+<!ELEMENT note EMPTY >
+<!ELEMENT pfx:note EMPTY >