1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-28 10:01:00 +03:00
Files
libxml2/test/valid/dtds/notes.dtd
Daniel Veillard a721612e54 446613 small validation bug mixed content with NS
* valid.c: fix a bug when valdating mixed content lists and some
  name use namespaces prefixes.
* result/valid/notes.xml* test/valid/dtds/notes.dtd * test/valid/notes.xml:
  add the test case to the regression suite
2009-08-21 18:22:58 +02:00

20 lines
452 B
DTD

<!--
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 >