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