Tests the "Fixed Attribute Default" VC by providing the wrong value.
<!DOCTYPE palimpest [ <!ELEMENT palimpest EMPTY> <!ATTLIST palimpest xmlns CDATA #FIXED "http://java.sun.com/historical" > <!-- tests the "fixed attribute default" vc --> ]> <palimpest xmlns="http://over.the.rainbow.com/somewhere"/>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix/> <data>http://over.the.rainbow.com/somewhere</data> </startPrefixMapping> <startElement> <namespaceURI>http://over.the.rainbow.com/somewhere</namespaceURI> <localName>palimpest</localName> <qualifiedName>palimpest</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI>http://over.the.rainbow.com/somewhere</namespaceURI> <localName>palimpest</localName> <qualifiedName>palimpest</qualifiedName> </endElement> <endPrefixMapping> <prefix/> </endPrefixMapping> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix/> <data>http://over.the.rainbow.com/somewhere</data> </startPrefixMapping> <startElement> <namespaceURI>http://over.the.rainbow.com/somewhere</namespaceURI> <localName>palimpest</localName> <qualifiedName>palimpest</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/2000/xmlns/</namespaceURI> <localName>xmlns</localName> <qualifiedName>xmlns</qualifiedName> <value>http://over.the.rainbow.com/somewhere</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI>http://over.the.rainbow.com/somewhere</namespaceURI> <localName>palimpest</localName> <qualifiedName>palimpest</qualifiedName> </endElement> <endPrefixMapping> <prefix/> </endPrefixMapping> <endDocument/> </ConformanceResults> |