Valid doctypedecl with ExternalID as an External Entity. A parameter entity reference is also used.
<!DOCTYPE doc SYSTEM "p28pass5.dtd"[ <!--comment--> <!ENTITY % rootdecl "<!ELEMENT doc (a)>"> <!ELEMENT a EMPTY> ]> <doc><a/></doc>
Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/oasis/p28pass5.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/oasis/p28pass5.xml</systemID> </resolveEntity> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/oasis/p28pass5.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |