[xml] Bug with default attributes in entities?



Hi,

It looks like 2.6.0 does not find
defaulted attributes in entities.

The example below illustrates the problem
(note the att attributes that appears
on the first test element, but not the second.

-sbi

~>cat test.xml
<!DOCTYPE x [
<!ELEMENT x (test*)>
<!ELEMENT test EMPTY>
<!ATTLIST test att CDATA "attvalue">
<!ENTITY test.ent "<test/>">
]>
<x>
    <test/>
    &test.ent;
</x>

~>xmllint --noent --dtdattr test.xml
<?xml version="1.0"?>
<!DOCTYPE x [
<!ELEMENT x (test)*>
<!ELEMENT test EMPTY>
<!ATTLIST test att CDATA "attvalue">
<!ENTITY test.ent "<test/>">
]>
<x>
    <test att="attvalue"/>
    <test/>
</x>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]