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 org.dom4j.io.aelfred.SAXDriver |
|---|---|
<?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.xml</systemID>
</resolveEntity>
<resolveEntity>
<systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/notation01.dtd</systemID>
</resolveEntity>
<notation>
<name>GIF</name>
<publicID>+//ISBN\s0-7923-9432-1::Graphic\sNotation//NOTATION\sCompuServe\sGraphic\sInterchange\sFormat//EN</publicID>
</notation>
<unparsedEntity>
<name>applydsssl</name>
<systemID>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/>
<qualifiedName>test</qualifiedName>
</endElement>
<endDocument/>
</ConformanceResults>
|