Tests Attribute against WFC "no external entity references". A direct references to the external unparsed entity "aImage" 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> <!NOTATION JPGformat SYSTEM "JPGFormat"> <!ENTITY aImage SYSTEM "image.jpg" NDATA JPGformat> ]> <root attr1="&aImage;">direct reference to external unparsed entinity 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/> <unparsedEntity> <name>aImage</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P41/image.jpg</systemID> <notation>JPGformat</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <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>e</char> <char>x</char> <char>t</char> <char>e</char> <char>r</char> <char>n</char> <char>a</char> <char>l</char> <char>\s</char> <char>u</char> <char>n</char> <char>p</char> <char>a</char> <char>r</char> <char>s</char> <char>e</char> <char>d</char> <char>\s</char> <char>e</char> <char>n</char> <char>t</char> <char>i</char> <char>n</char> <char>i</char> <char>t</char> <char>y</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> |