Parameter entities references are NOT RECOGNIZED in default attribute values.
<!DOCTYPE root SYSTEM "pe01.dtd"> <root/>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/pe01.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>evil</localName> <qualifiedName>evil</qualifiedName> <value>doctor</value> <type>NMTOKEN</type> </attribute> <attribute> <namespaceURI/> <localName>something</localName> <qualifiedName>something</qualifiedName> <value>%not-pe;</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/pe01.xml</systemID> </resolveEntity> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/pe01.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>evil</localName> <qualifiedName>evil</qualifiedName> <value>doctor</value> <type>NMTOKEN</type> </attribute> <attribute> <namespaceURI/> <localName>something</localName> <qualifiedName>something</qualifiedName> <value/> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |