Tests Attribute against WFC "No (less that) character in Attribute Values". The character "less than" is contained in the value of the attribute "attr1".
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root ANY> <!ATTLIST root attr1 CDATA #IMPLIED> <!ATTLIST root attr2 CDATA #IMPLIED> <!ENTITY withlt "have <lessthan> inside"> ]> <root attr1="&withlt;">Direct reference to an entity with < as part of its replacement text in Attribute</root>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <value>have\slessthan>\sinside</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>D</char> <char>i</char> <char>r</char> <char>e</char> <char>c</char> <char>t</char> <char>\s</char> <char>r</char> <char>e</char> <char>f</char> <char>e</char> <char>r</char> <char>e</char> <char>n</char> <char>c</char> <char>e</char> <char>\s</char> <char>t</char> <char>o</char> <char>\s</char> <char>a</char> <char>n</char> <char>\s</char> <char>e</char> <char>n</char> <char>t</char> <char>i</char> <char>t</char> <char>y</char> <char>\s</char> <char>w</char> <char>i</char> <char>t</char> <char>h</char> <char>\s</char> <char><</char> <char>\s</char> <char>a</char> <char>s</char> <char>\s</char> <char>p</char> <char>a</char> <char>r</char> <char>t</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>i</char> <char>t</char> <char>s</char> <char>\s</char> <char>r</char> <char>e</char> <char>p</char> <char>l</char> <char>a</char> <char>c</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>e</char> <char>x</char> <char>t</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>A</char> <char>t</char> <char>t</char> <char>r</char> <char>i</char> <char>b</char> <char>u</char> <char>t</char> <char>e</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |