mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-28 10:01:00 +03:00
* 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
20 lines
452 B
DTD
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 >
|