Tests invalid TokenizedType which is against P56 VC: Entity Name. The value of the ENTITY attribute "sun" is "ima ge" which does not meet the Name production.
<?xml version="1.0"?> <!-- validity constraint check for Production 56(Negative test)--> <!DOCTYPE test [ <!ELEMENT test ANY> <!ELEMENT landscape EMPTY> <!ENTITY image SYSTEM "d:\testspec\images\sunset.gif" NDATA gif> <!ATTLIST landscape sun ENTITY #IMPLIED> ]> <test> <landscape sun = "ima ge"></landscape> In the attribute decl, values of type ENTITY do not match the Name production </test>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <unparsedEntity> <name>image</name> <systemID>d:\testspec\images\sunset.gif</systemID> <notation>gif</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>landscape</localName> <qualifiedName>landscape</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>sun</localName> <qualifiedName>sun</qualifiedName> <value>ima\sge</value> <type>ENTITY</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>landscape</localName> <qualifiedName>landscape</qualifiedName> </endElement> <char>\n</char> <char>I</char> <char>n</char> <char>\s</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>d</char> <char>e</char> <char>c</char> <char>l</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>E</char> <char>N</char> <char>T</char> <char>I</char> <char>T</char> <char>Y</char> <char>\s</char> <char>d</char> <char>o</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>a</char> <char>m</char> <char>e</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/> <unparsedEntity> <name>image</name> <systemID>d:\testspec\images\sunset.gif</systemID> <notation>gif</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>landscape</localName> <qualifiedName>landscape</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>sun</localName> <qualifiedName>sun</qualifiedName> <value>ima\sge</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>landscape</localName> <qualifiedName>landscape</qualifiedName> </endElement> <char>\n</char> <char>I</char> <char>n</char> <char>\s</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>d</char> <char>e</char> <char>c</char> <char>l</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>E</char> <char>N</char> <char>T</char> <char>I</char> <char>T</char> <char>Y</char> <char>\s</char> <char>d</char> <char>o</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>a</char> <char>m</char> <char>e</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> |