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 gnu.xml.aelfred2.XmlReader |
---|---|
<?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/> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">1 >= 1</bug> </ConformanceResults> |