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 net.sf.saxon.aelfred.SAXDriver |
|---|---|
<?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/>
<resolveEntity>
<systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/attr04.xml</systemID>
</resolveEntity>
<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>
|