Namespace inequality test: different escaping of non-ascii letter
<?xml version="1.1" encoding="iso-8859-1"?> <!-- Namespace inequality test: different escaping of non-ascii letter --> <!DOCTYPE foo [ <!ELEMENT foo ANY> <!ATTLIST foo xmlns:a CDATA #IMPLIED xmlns:b CDATA #IMPLIED xmlns:c CDATA #IMPLIED> <!ELEMENT bar ANY> <!ATTLIST bar a:attr CDATA #IMPLIED b:attr CDATA #IMPLIED c:attr CDATA #IMPLIED> ]> <foo xmlns:a="http://example.org/rosé" xmlns:b="http://example.org/ros%c3%a9" xmlns:c="http://example.org/ros%c3%A9"> <bar a:attr="1" b:attr="2" c:attr="3"/> </foo>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/rosé</data> </startPrefixMapping> <startPrefixMapping> <prefix>b</prefix> <data>http://example.org/ros%c3%a9</data> </startPrefixMapping> <startPrefixMapping> <prefix>c</prefix> <data>http://example.org/ros%c3%A9</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\n</char> <startElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> <attributes> <attribute> <namespaceURI>http://example.org/rosé</namespaceURI> <localName>attr</localName> <qualifiedName>a:attr</qualifiedName> <value>1</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI>http://example.org/ros%c3%a9</namespaceURI> <localName>attr</localName> <qualifiedName>b:attr</qualifiedName> <value>2</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI>http://example.org/ros%c3%A9</namespaceURI> <localName>attr</localName> <qualifiedName>c:attr</qualifiedName> <value>3</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> </endElement> <char>\n</char> <char>\n</char> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <endPrefixMapping> <prefix>b</prefix> </endPrefixMapping> <endPrefixMapping> <prefix>c</prefix> </endPrefixMapping> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/rosé</data> </startPrefixMapping> <startPrefixMapping> <prefix>b</prefix> <data>http://example.org/ros%c3%a9</data> </startPrefixMapping> <startPrefixMapping> <prefix>c</prefix> <data>http://example.org/ros%c3%A9</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/2000/xmlns/</namespaceURI> <localName>a</localName> <qualifiedName>xmlns:a</qualifiedName> <value>http://example.org/rosé</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI>http://www.w3.org/2000/xmlns/</namespaceURI> <localName>b</localName> <qualifiedName>xmlns:b</qualifiedName> <value>http://example.org/ros%c3%a9</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI>http://www.w3.org/2000/xmlns/</namespaceURI> <localName>c</localName> <qualifiedName>xmlns:c</qualifiedName> <value>http://example.org/ros%c3%A9</value> <type>CDATA</type> </attribute> </attributes> </startElement> <ignorable>\n</ignorable> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> <attributes> <attribute> <namespaceURI>http://example.org/rosé</namespaceURI> <localName>attr</localName> <qualifiedName>a:attr</qualifiedName> <value>1</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI>http://example.org/ros%c3%a9</namespaceURI> <localName>attr</localName> <qualifiedName>b:attr</qualifiedName> <value>2</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI>http://example.org/ros%c3%A9</namespaceURI> <localName>attr</localName> <qualifiedName>c:attr</qualifiedName> <value>3</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> </endElement> <ignorable>\n</ignorable> <ignorable>\n</ignorable> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <endPrefixMapping> <prefix>b</prefix> </endPrefixMapping> <endPrefixMapping> <prefix>c</prefix> </endPrefixMapping> <fatalError/> </ConformanceResults> |