Tests the Standalone Document Declaration VC, ensuring that an IDREFS attribute needing normalization causes a validity error.
<?xml version='1.0' standalone='yes'?> <!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ <!-- IDREFS needs normalization --> ]> <attributes token = "b" id = "date28" idrefs = " date28 date28 date28 " />
Expected result | Actual result for org.apache.crimson.parser.XMLReaderImpl |
---|---|
<?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>date28</value> <type>ID</type> </attribute> <attribute> <namespaceURI/> <localName>idrefs</localName> <qualifiedName>idrefs</qualifiedName> <value>date28\sdate28\sdate28</value> <type>IDREFS</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/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/../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>date28</value> <type>ID</type> </attribute> <attribute> <namespaceURI/> <localName>idrefs</localName> <qualifiedName>idrefs</qualifiedName> <value>date28\sdate28\sdate28</value> <type>IDREFS</type> </attribute> <attribute> <namespaceURI/> <localName>token</localName> <qualifiedName>token</qualifiedName> <value>b</value> <type>ENUMERATION</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>attributes</localName> <qualifiedName>attributes</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |