Tests DefaultDecl against WFC of P60. The text replacement of the entity "avalue" contains the "less than" character in the DefaultDecl in the AttDef in the AttlistDecl in the DTD.
<?xml version="1.0"?> <!-- WFC test for Production 60--> <!DOCTYPE Java [ <!ELEMENT Java ANY> <!ELEMENT one EMPTY> <!ENTITY avalue "<Introduction"> <!ATTLIST one chapter CDATA #REQUIRED> ]> <Java> <one chapter="&avalue;"></one> Negative test. The replacement text of any entity referred to directly or indirectly in an attribute value contains a less than character </Java>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> <attributes/> </startElement> <char>\n</char> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> <attributes/> </startElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>one</localName> <qualifiedName>one</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>chapter</localName> <qualifiedName>chapter</qualifiedName> <value>Introduction</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>one</localName> <qualifiedName>one</qualifiedName> </endElement> <char>\n</char> <char>N</char> <char>e</char> <char>g</char> <char>a</char> <char>t</char> <char>i</char> <char>v</char> <char>e</char> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>.</char> <char>\s</char> <char>\n</char> <char>T</char> <char>h</char> <char>e</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>o</char> <char>f</char> <char>\s</char> <char>a</char> <char>n</char> <char>y</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>r</char> <char>e</char> <char>f</char> <char>e</char> <char>r</char> <char>r</char> <char>e</char> <char>d</char> <char>\s</char> <char>t</char> <char>o</char> <char>\s</char> <char>d</char> <char>i</char> <char>r</char> <char>e</char> <char>c</char> <char>t</char> <char>l</char> <char>y</char> <char>\s</char> <char>o</char> <char>r</char> <char>\s</char> <char>i</char> <char>n</char> <char>d</char> <char>i</char> <char>r</char> <char>e</char> <char>c</char> <char>t</char> <char>l</char> <char>y</char> <char>\s</char> <char>\n</char> <char>i</char> <char>n</char> <char>\s</char> <char>a</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> <char>\s</char> <char>v</char> <char>a</char> <char>l</char> <char>u</char> <char>e</char> <char>\s</char> <char>c</char> <char>o</char> <char>n</char> <char>t</char> <char>a</char> <char>i</char> <char>n</char> <char>s</char> <char>\s</char> <char>a</char> <char>\s</char> <char>l</char> <char>e</char> <char>s</char> <char>s</char> <char>\s</char> <char>t</char> <char>h</char> <char>a</char> <char>n</char> <char>\s</char> <char>c</char> <char>h</char> <char>a</char> <char>r</char> <char>a</char> <char>c</char> <char>t</char> <char>e</char> <char>r</char> <char>\n</char> <endElement> <namespaceURI/> <localName>Java</localName> <qualifiedName>Java</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |