Has an LSEP character in an NMTOKENS attribute; well-formed in both XML 1.0 and 1.1, but valid only in 1.1
<?xml version="1.1"?> <!-- Has an LSEP character in an NMTOKENS attribute; well-formed in both XML 1.0 and 1.1, but valid only in 1.1 --> <!DOCTYPE foo [ <!ELEMENT foo ANY> <!ATTLIST foo bar NMTOKENS #IMPLIED> ]> <foo bar="abc def"/>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> <value>abc\sdef</value> <type>NMTOKENS</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> <value>abc def</value> <type>NMTOKENS</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |