Tests invalid NotationType which is against P58 VC: Notation Attributes. The attribute "content-encoding" with value "raw" is not a value from the list "(base64|uuencode)".
<?xml version="1.0"?> <!-- validity test for Production 58(Negative Test--> <!DOCTYPE test [ <!ELEMENT test ANY> <!ELEMENT blob (#PCDATA)> <!NOTATION base64 SYSTEM "mimecode"> <!NOTATION uuencode SYSTEM "uudecode"> <!NOTATION raw SYSTEM "raw"> <!ATTLIST blob content-encoding NOTATION (base64|uuencode) #REQUIRED> ]> <test> <blob content-encoding = "raw"></blob> The attribute values of type NOTATION does not match any of the notation names included in the declaration.All notation names in the declaration have been declared. </test>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>base64</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P58/mimecode</systemID> </notation> <notation> <name>raw</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P58/raw</systemID> </notation> <notation> <name>uuencode</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P58/uudecode</systemID> </notation> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>blob</localName> <qualifiedName>blob</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>content-encoding</localName> <qualifiedName>content-encoding</qualifiedName> <value>raw</value> <type>NOTATION</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>blob</localName> <qualifiedName>blob</qualifiedName> </endElement> <char>\n</char> <char>T</char> <char>h</char> <char>e</char> <char>\s</char> <char>a</char> <char>t</char> <char>t</char> <char>r</char> <char>i</char> <char>b</char> <char>u</char> <char>t</char> <char>e</char> <char>\s</char> <char>v</char> <char>a</char> <char>l</char> <char>u</char> <char>e</char> <char>s</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>N</char> <char>O</char> <char>T</char> <char>A</char> <char>T</char> <char>I</char> <char>O</char> <char>N</char> <char>\s</char> <char>d</char> <char>o</char> <char>e</char> <char>s</char> <char>\s</char> <char>n</char> <char>o</char> <char>t</char> <char>\s</char> <char>m</char> <char>a</char> <char>t</char> <char>c</char> <char>h</char> <char>\s</char> <char>a</char> <char>n</char> <char>y</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>n</char> <char>o</char> <char>t</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>\s</char> <char>n</char> <char>a</char> <char>m</char> <char>e</char> <char>s</char> <char>\s</char> <char>i</char> <char>n</char> <char>c</char> <char>l</char> <char>u</char> <char>d</char> <char>e</char> <char>d</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\n</char> <char>d</char> <char>e</char> <char>c</char> <char>l</char> <char>a</char> <char>r</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>.</char> <char>A</char> <char>l</char> <char>l</char> <char>\s</char> <char>n</char> <char>o</char> <char>t</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>\s</char> <char>n</char> <char>a</char> <char>m</char> <char>e</char> <char>s</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>d</char> <char>e</char> <char>c</char> <char>l</char> <char>a</char> <char>r</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>\s</char> <char>h</char> <char>a</char> <char>v</char> <char>e</char> <char>\s</char> <char>b</char> <char>e</char> <char>e</char> <char>n</char> <char>\s</char> <char>d</char> <char>e</char> <char>c</char> <char>l</char> <char>a</char> <char>r</char> <char>e</char> <char>d</char> <char>.</char> <char>\n</char> <endElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>base64</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P58/mimecode</systemID> </notation> <notation> <name>raw</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P58/raw</systemID> </notation> <notation> <name>uuencode</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P58/uudecode</systemID> </notation> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>blob</localName> <qualifiedName>blob</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>content-encoding</localName> <qualifiedName>content-encoding</qualifiedName> <value>raw</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>blob</localName> <qualifiedName>blob</qualifiedName> </endElement> <char>\n</char> <char>T</char> <char>h</char> <char>e</char> <char>\s</char> <char>a</char> <char>t</char> <char>t</char> <char>r</char> <char>i</char> <char>b</char> <char>u</char> <char>t</char> <char>e</char> <char>\s</char> <char>v</char> <char>a</char> <char>l</char> <char>u</char> <char>e</char> <char>s</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>N</char> <char>O</char> <char>T</char> <char>A</char> <char>T</char> <char>I</char> <char>O</char> <char>N</char> <char>\s</char> <char>d</char> <char>o</char> <char>e</char> <char>s</char> <char>\s</char> <char>n</char> <char>o</char> <char>t</char> <char>\s</char> <char>m</char> <char>a</char> <char>t</char> <char>c</char> <char>h</char> <char>\s</char> <char>a</char> <char>n</char> <char>y</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>n</char> <char>o</char> <char>t</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>\s</char> <char>n</char> <char>a</char> <char>m</char> <char>e</char> <char>s</char> <char>\s</char> <char>i</char> <char>n</char> <char>c</char> <char>l</char> <char>u</char> <char>d</char> <char>e</char> <char>d</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\n</char> <char>d</char> <char>e</char> <char>c</char> <char>l</char> <char>a</char> <char>r</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>.</char> <char>A</char> <char>l</char> <char>l</char> <char>\s</char> <char>n</char> <char>o</char> <char>t</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>\s</char> <char>n</char> <char>a</char> <char>m</char> <char>e</char> <char>s</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>d</char> <char>e</char> <char>c</char> <char>l</char> <char>a</char> <char>r</char> <char>a</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>\s</char> <char>h</char> <char>a</char> <char>v</char> <char>e</char> <char>\s</char> <char>b</char> <char>e</char> <char>e</char> <char>n</char> <char>\s</char> <char>d</char> <char>e</char> <char>c</char> <char>l</char> <char>a</char> <char>r</char> <char>e</char> <char>d</char> <char>.</char> <char>\n</char> <endElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |