An attribute default must be syntactically correct even if unused
<!DOCTYPE foo [ <!ELEMENT foo ANY> <!NOTATION gif SYSTEM "file:///usr/X11R6/bin/xv"> <!ENTITY declared SYSTEM "xyzzy" NDATA gif> <!ATTLIST foo bar ENTITY "7"> ]> <foo bar="declared"/>
| Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
|---|---|
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
<startDocument/>
<notation>
<name>gif</name>
<systemID>file:///usr/X11R6/bin/xv</systemID>
</notation>
<unparsedEntity>
<name>declared</name>
<systemID>file:/home/elharo/SAXTest/xmlconf/eduni/errata-2e/xyzzy</systemID>
<notation>gif</notation>
</unparsedEntity>
<startElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
<attributes>
<attribute>
<namespaceURI/>
<localName>bar</localName>
<qualifiedName>bar</qualifiedName>
<value>declared</value>
<type>ENTITY</type>
</attribute>
</attributes>
</startElement>
<endElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
</endElement>
<endDocument/>
</ConformanceResults>
| <?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
<startDocument/>
<resolveEntity>
<systemID>file:/home/elharo/SAXTest/xmlconf/eduni/errata-2e/E9b.xml</systemID>
</resolveEntity>
<notation>
<name>gif</name>
<systemID>file:///usr/X11R6/bin/xv</systemID>
</notation>
<unparsedEntity>
<name>declared</name>
<systemID>file:/home/elharo/SAXTest/xmlconf/eduni/errata-2e/xyzzy</systemID>
<notation>gif</notation>
</unparsedEntity>
<startElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
<attributes>
<attribute>
<namespaceURI/>
<localName>bar</localName>
<qualifiedName>bar</qualifiedName>
<value>declared</value>
<type>ENTITY</type>
</attribute>
</attributes>
</startElement>
<endElement>
<namespaceURI/>
<localName>foo</localName>
<qualifiedName>foo</qualifiedName>
</endElement>
<endDocument/>
</ConformanceResults>
|