libxml2/result/valid/ns2.xml
Nick Wellnhofer 7d446e9736 parser: Fix namespaces redefined from default attributes
This regressed in commit e0dd330b.

Also fixes a long-standing issue where namespaces from default
attributes weren't added if they match an existing namespace.

Fixes #643.
2023-12-08 12:19:16 +01:00

12 lines
336 B
XML

<?xml version="1.0"?>
<!DOCTYPE a:outer [
<!ELEMENT a:outer (a:inner)>
<!ATTLIST a:outer xmlns:a CDATA #FIXED "urn:namespace">
<!ELEMENT a:inner EMPTY>
<!ATTLIST a:inner xmlns:a CDATA #FIXED "urn:namespace">
<!ATTLIST a:inner attr CDATA #FIXED "yes">
]>
<a:outer xmlns:a="urn:namespace">
<a:inner xmlns:a="urn:namespace"/>
</a:outer>