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 attributes with values that will change if normalized.
<?xml version="1.0" standalone="yes" ?> <!DOCTYPE animal SYSTEM "ibm32i03.dtd" [ <!ELEMENT animal EMPTY> ]> <!-- This is against VC: Standalone Document Declaration in P32 The standalone document declaration has the value "yes", there is an external markup declaration of attributes with values containing character reference. --> <animal class=" NMTOKEN_with_leading_and_trailing_space "/>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P32/ibm32i03.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>class</localName> <qualifiedName>class</qualifiedName> <value>NMTOKEN_with_leading_and_trailing_space</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>class</localName> <qualifiedName>class</qualifiedName> <value>\s\s\sNMTOKEN_with_leading_and_trailing_space\s\s</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |