A reference to an unparsed entity in an entity value is an error rather than forbidden (unless the entity is referenced, of course)
<!DOCTYPE foo [ <!ELEMENT foo ANY> <!ENTITY e "an &unparsed; entity"> <!NOTATION gif SYSTEM "file:///usr/X11R6/bin/xv"> <!ENTITY unparsed SYSTEM "xyzzy" NDATA gif> ]> <foo/>
Expected result | Actual result for org.dom4j.io.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>unparsed</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/> </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/E55.xml</systemID> </resolveEntity> <notation> <name>gif</name> <systemID>file:///usr/X11R6/bin/xv</systemID> </notation> <unparsedEntity> <name>unparsed</name> <systemID>xyzzy</systemID> <notation>gif</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>foo</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |