This is test violates WFC: Entity Declared in P68. The standalone document declaration has the value yes, BUT there is an external markup declaration of an entity (other than amp, lt, gt, apos, quot), and references to this entity appear in the document.
<?xml version="1.0" standalone="yes" ?> <!DOCTYPE animal SYSTEM "ibm32n09.dtd" [ <!ELEMENT animal (#PCDATA)> ]> <!-- This is test violates WFC: Entity Declared in P68 The standalone document declaration has the value "yes", there is an external markup declaration of an entity (other than amp, lt, gt, apos, quot), and references to this entity appear in the document. --> <animal>&animal_content;</animal>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P32/ibm32n09.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> <attributes/> </startElement> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |