The VersionNum of the document entity is 1.1 whereas the VersionNum of the external entity is 1.0. The character #xD6 which is a valid XML 1.1 but an invalid XML 1.0 character is present in both documents.
<?xml version='1.1'?> <!DOCTYPE doc [ <!ELEMENT doc (Önode*)> <!ELEMENT Önode EMPTY> <!ENTITY e SYSTEM "ibm77v04.ent"> ]> <doc>&e;</doc>
Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/xml-1.1/valid/P77/ibm77v04.ent</systemID> </resolveEntity> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>Önode</localName> <qualifiedName>Önode</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>Önode</localName> <qualifiedName>Önode</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>Önode</localName> <qualifiedName>Önode</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>Önode</localName> <qualifiedName>Önode</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>Önode</localName> <qualifiedName>Önode</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>Önode</localName> <qualifiedName>Önode</qualifiedName> </endElement> <ignorable>\n</ignorable> <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/ibm/xml-1.1/valid/P77/ibm77v04.xml</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> |