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 org.apache.crimson.parser.XMLReaderImpl |
---|---|
<?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://java.sun.com/historical</data> </startPrefixMapping> <startPrefixMapping> <prefix/> <data>http://over.the.rainbow.com/somewhere</data> </startPrefixMapping> <startElement> <namespaceURI>http://java.sun.com/historical</namespaceURI> <localName>palimpest</localName> <qualifiedName>palimpest</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI>http://java.sun.com/historical</namespaceURI> <localName>palimpest</localName> <qualifiedName>palimpest</qualifiedName> </endElement> <endPrefixMapping> <prefix/> </endPrefixMapping> <endDocument/> </ConformanceResults> |