Tests invalid Enumeration which is against P59 VC: Enumeration. The value of the attribute is "ONE" which matches neither "one" nor "two" as declared in the Enumeration in the AttDef in the AttlistDecl.
<?xml version="1.0"?> <!-- validity test for Production 59--> <!DOCTYPE test [ <!ELEMENT test ANY> <!ELEMENT one EMPTY> <!ELEMENT two EMPTY> <!ELEMENT num EMPTY> <!ATTLIST num value (one|two) #IMPLIED> ]> <test> <num value = "ONE"></num> This is a Negative test The attribute values of type Enumeration does not match any of the Nmtoken tokens in the declaration. </test>
Expected result | Actual result for com.bluecast.xml.Piccolo |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>num</localName> <qualifiedName>num</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>ONE</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>num</localName> <qualifiedName>num</qualifiedName> </endElement> <char>\n</char> <char>T</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>a</char> <char>\s</char> <char>N</char> <char>e</char> <char>g</char> <char>a</char> <char>t</char> <char>i</char> <char>v</char> <char>e</char> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <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>E</char> <char>n</char> <char>u</char> <char>m</char> <char>e</char> <char>r</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>m</char> <char>t</char> <char>o</char> <char>k</char> <char>e</char> <char>n</char> <char>\s</char> <char>t</char> <char>o</char> <char>k</char> <char>e</char> <char>n</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>.</char> <char>\n</char> <endElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>num</localName> <qualifiedName>num</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>value</localName> <qualifiedName>value</qualifiedName> <value>ONE</value> <type>ENUMERATION</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>num</localName> <qualifiedName>num</qualifiedName> </endElement> <char>\n</char> <char>T</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>a</char> <char>\s</char> <char>N</char> <char>e</char> <char>g</char> <char>a</char> <char>t</char> <char>i</char> <char>v</char> <char>e</char> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <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>E</char> <char>n</char> <char>u</char> <char>m</char> <char>e</char> <char>r</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>m</char> <char>t</char> <char>o</char> <char>k</char> <char>e</char> <char>n</char> <char>\s</char> <char>t</char> <char>o</char> <char>k</char> <char>e</char> <char>n</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>.</char> <char>\n</char> <endElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |