Tests the "Attribute Default Legal" VC by providing an illegal ENTITY value.
<!DOCTYPE reference [ <!ELEMENT reference EMPTY> <!ATTLIST reference value ENTITY "2orldbook" > <!-- tests the "attribute default legal" vc --> <!NOTATION encyclopaedia PUBLIC "-//fooCorp Inc//NOTATION something//EN"> <!ENTITY brittannica SYSTEM "http://www.eb.com/" NDATA encyclopaedia> <!ENTITY worldbook SYSTEM "http://www.worldbook.com"> ]> <reference value="brittannica"/>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>encyclopaedia</name> <publicID>-//fooCorp Inc//NOTATION something//EN</publicID> </notation> <unparsedEntity> <name>brittannica</name> <systemID>http://www.eb.com/</systemID> <notation>encyclopaedia</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>reference</localName> <qualifiedName>reference</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>brittannica</value> <type>ENTITY</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>reference</localName> <qualifiedName>reference</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> |