Tests the Standalone Document Declaration VC, ensuring that an IDREF attribute needing normalization causes a validity error.
<?xml version='1.0' standalone='yes'?> <!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ <!-- IDREF needs normalization --> ]> <attributes token = "b" id = "id43" idref = " id43 " />
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/sun/valid/sa.dtd</systemID> </resolveEntity> <notation> <name>bar</name> <systemID>file:/dev/tty</systemID> </notation> <notation> <name>foo</name> <publicID>-//public id//foo</publicID> <systemID>file:/dev/null</systemID> </notation> <notation> <name>nonce</name> <systemID>file:/dev/null</systemID> </notation> <unparsedEntity> <name>unparsed-1</name> <publicID>-//some public//ID</publicID> <systemID>file:/dev/console</systemID> <notation>nonce</notation> </unparsedEntity> <unparsedEntity> <name>unparsed-2</name> <systemID>scheme://host/data</systemID> <notation>foo</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>attributes</localName> <qualifiedName>attributes</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>id43</value> <type>ID</type> </attribute> <attribute> <namespaceURI/> <localName>idref</localName> <qualifiedName>idref</qualifiedName> <value>id43</value> <type>IDREF</type> </attribute> <attribute> <namespaceURI/> <localName>token</localName> <qualifiedName>token</qualifiedName> <value>b</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>attributes</localName> <qualifiedName>attributes</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>attributes</localName> <qualifiedName>attributes</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>id43</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>idref</localName> <qualifiedName>idref</qualifiedName> <value>\sid43\s\s\s\s\s</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>token</localName> <qualifiedName>token</qualifiedName> <value>b</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>attributes</localName> <qualifiedName>attributes</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |