This test violates VC: Standalone Document Declaration in P32. The standalone document declaration has the value yes, BUT there is an external markup declaration of element with element content, and white space occurs directly within the mixed content.
<?xml version='1.0' standalone='yes' ?> <!DOCTYPE animal SYSTEM "ibm32i04.dtd" [ <!ATTLIST animal xml:space (default|preserve) 'preserve'> ]> <!-- This is against VC: Standalone Document Declaration in P32 The standalone document declaration has the value "yes", there is an external markup declaration of element with a element only content type, and white space occurs directly within the mixed content. --> <animal><a>This is a yellow tiger</a> <b/> <c/> </animal>
Expected result | Actual result for com.bluecast.xml.Piccolo |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P32/ibm32i04.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI> <localName>space</localName> <qualifiedName>xml:space</qualifiedName> <value>preserve</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes/> </startElement> <char>T</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>a</char> <char>\s</char> <char>\n</char> <char>\n</char> <char>y</char> <char>e</char> <char>l</char> <char>l</char> <char>o</char> <char>w</char> <char>\s</char> <char>t</char> <char>i</char> <char>g</char> <char>e</char> <char>r</char> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <ignorable>\s</ignorable> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> </endElement> <ignorable>\n</ignorable> <ignorable>\n</ignorable> <endElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P32/ibm32i04.dtd</systemID> </resolveEntity> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.NullPointerException"/> </ConformanceResults> |