[xml] Bug with default attributes in entities?
- From: "Stéphane Bidoul" <stephane bidoul softwareag com>
- To: <xml gnome org>
- Subject: [xml] Bug with default attributes in entities?
- Date: Sat, 20 Sep 2003 21:38:45 +0200
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]