Tests NotationDecl in P82 and PublicID in P83
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root (#PCDATA)> <!ATTLIST root att CDATA #IMPLIED> <!ATTLIST root entatt1 ENTITY #REQUIRED > <!--* Test PublicID in P82 *--> <!NOTATION JPGformat PUBLIC "-//image//notreal" > <!ENTITY unparsed1 SYSTEM "image.jpg" NDATA JPGformat> ]> <root entatt1="unparsed1">test PublicID in P82</root> <!-- a valid test case: test P82 and P83 -->
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>JPGformat</name> <publicID>-//image//notreal</publicID> </notation> <unparsedEntity> <name>unparsed1</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P82/image.jpg</systemID> <notation>JPGformat</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>entatt1</localName> <qualifiedName>entatt1</qualifiedName> <value>unparsed1</value> <type>ENTITY</type> </attribute> </attributes> </startElement> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>\s</char> <char>P</char> <char>u</char> <char>b</char> <char>l</char> <char>i</char> <char>c</char> <char>I</char> <char>D</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>P</char> <char>8</char> <char>2</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>JPGformat</name> <publicID>-//image//notreal</publicID> </notation> <unparsedEntity> <name>unparsed1</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P82/image.jpg</systemID> <notation>JPGformat</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>entatt1</localName> <qualifiedName>entatt1</qualifiedName> <value>unparsed1</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>\s</char> <char>P</char> <char>u</char> <char>b</char> <char>l</char> <char>i</char> <char>c</char> <char>I</char> <char>D</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>P</char> <char>8</char> <char>2</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |