Tests invalid TokenizedType which is against P56 VC: Name Token. The value of the NMTOKEN attribute "thistoken" is "x : image" which does not meet the Nmtoken production.
<?xml version="1.0"?> <!-- validity constraint check for Production 56(Negative Test)--> <!DOCTYPE test [ <!ELEMENT test ANY> <!ELEMENT nametoken EMPTY> <!ATTLIST nametoken thistoken NMTOKEN #IMPLIED> ]> <test> <nametoken thistoken = "x : image"></nametoken> In an attribute declaration, values of type NMTOKEN does not match the Nmtoken production </test>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?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>nametoken</localName> <qualifiedName>nametoken</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>thistoken</localName> <qualifiedName>thistoken</qualifiedName> <value>x\s:\simage</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>nametoken</localName> <qualifiedName>nametoken</qualifiedName> </endElement> <char>\n</char> <char>I</char> <char>n</char> <char>\s</char> <char>a</char> <char>n</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>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>\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>M</char> <char>T</char> <char>O</char> <char>K</char> <char>E</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>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>p</char> <char>r</char> <char>o</char> <char>d</char> <char>u</char> <char>c</char> <char>t</char> <char>i</char> <char>o</char> <char>n</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> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>nametoken</localName> <qualifiedName>nametoken</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>thistoken</localName> <qualifiedName>thistoken</qualifiedName> <value>x\s:\simage</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>nametoken</localName> <qualifiedName>nametoken</qualifiedName> </endElement> <char>\n</char> <char>I</char> <char>n</char> <char>\s</char> <char>a</char> <char>n</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>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>\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>M</char> <char>T</char> <char>O</char> <char>K</char> <char>E</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>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>p</char> <char>r</char> <char>o</char> <char>d</char> <char>u</char> <char>c</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>\n</char> <endElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |