Tests the "Notation Attributes" VC for the NOTATION attribute type, second clause: the names in the declaration must all be declared.
<!DOCTYPE root [ <!ELEMENT root EMPTY> <!ATTLIST root type NOTATION (fruit | vegetable) #REQUIRED > <!NOTATION fruit PUBLIC "-//International Grocery Consortium//Edible//Healthy//EN"> <!-- tests the 'all notation names in the declaration must be declared' part of the "Notation Attributes" VC --> ]> <root type="fruit"/>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>fruit</name> <publicID>-//International Grocery Consortium//Edible//Healthy//EN</publicID> </notation> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>type</localName> <qualifiedName>type</qualifiedName> <value>fruit</value> <type>NOTATION</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>type</localName> <qualifiedName>type</qualifiedName> <value>fruit</value> <type>NOTATION</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |