NOTATION declarations don't need SYSTEM IDs; and externally declared notations may be used to declare unparsed entities in the internal DTD subset. The notation must be reported to the application.
<?xml version="1.0"?> <!DOCTYPE test SYSTEM "notation01.dtd" [ <!ENTITY applydsssl SYSTEM "applydsssl.gif" NDATA GIF> ]> <test>test</test>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/notation01.dtd</systemID> </resolveEntity> <notation> <name>GIF</name> <publicID>+//ISBN 0-7923-9432-1::Graphic Notation//NOTATION CompuServe Graphic Interchange Format//EN</publicID> </notation> <unparsedEntity> <name>applydsssl</name> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/applydsssl.gif</systemID> <notation>GIF</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <endElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/notation01.dtd</systemID> </resolveEntity> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 >= 0</bug> </ConformanceResults> |