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 org.dom4j.io.aelfred.SAXDriver |
---|---|
<?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/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/attr11.xml</systemID> </resolveEntity> <notation> <name>encyclopaedia</name> <publicID>-//fooCorp\sInc//NOTATION\ssomething//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/> <qualifiedName>reference</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |