Tests all legal GEDecls and PEDecls constructs derived from P70-76
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root (#PCDATA)> <!ATTLIST root att CDATA #IMPLIED> <!--* Test all legal patterns derived from P70-76 *--> <!ENTITY % pe1 '<!ATTLIST root att2 CDATA "&ge1;">'> <!ENTITY ge1 "attdefaultvalue" > %pe1; <!NOTATION JPGformat SYSTEM "JPGFormat"> <!ENTITY ge2 SYSTEM "image.jpg" NDATA JPGformat> <!ENTITY % pe2 PUBLIC "-//w3c//any" "ibm70v01.ent" > %pe2; ]> <root att2="any" /> <!-- a valid test case: test P70-P76 -->
Expected result | Actual result for com.bluecast.xml.Piccolo |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <publicID>-//w3c//any</publicID> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P70/ibm70v01.ent</systemID> </resolveEntity> <notation> <name>JPGformat</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P70/JPGFormat</systemID> </notation> <unparsedEntity> <name>ge2</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P70/image.jpg</systemID> <notation>JPGformat</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>att2</localName> <qualifiedName>att2</qualifiedName> <value>any</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <publicID>-//w3c//any</publicID> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P70/ibm70v01.ent</systemID> </resolveEntity> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.NullPointerException"/> </ConformanceResults> |