This test violates VC: Unique Element Type Declaration. Element not_unique has been declared 3 time in the DTD.
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root (#PCDATA|b)* > <!ELEMENT b EMPTY> <!ELEMENT not_unique ANY> <!ELEMENT not_unique EMPTY> <!ELEMENT not_unique (b,b) > <!ELEMENT unique. ANY> <!ATTLIST b attr1 CDATA #IMPLIED> <!ATTLIST b attr2 CDATA #IMPLIED> <!ATTLIST b attr3 CDATA #IMPLIED> ]> <root> <b/>without white space <b /> with a white space <b attr1="value1" /> <b attr1="value1" attr2="value2" attr3 = "value3"/> </root> <!--* a invalid test: testing P45 VC unique element type decl *-->
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>w</char> <char>i</char> <char>t</char> <char>h</char> <char>o</char> <char>u</char> <char>t</char> <char>\s</char> <char>w</char> <char>h</char> <char>i</char> <char>t</char> <char>e</char> <char>\s</char> <char>s</char> <char>p</char> <char>a</char> <char>c</char> <char>e</char> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\s</char> <char>w</char> <char>i</char> <char>t</char> <char>h</char> <char>\s</char> <char>a</char> <char>\s</char> <char>w</char> <char>h</char> <char>i</char> <char>t</char> <char>e</char> <char>\s</char> <char>s</char> <char>p</char> <char>a</char> <char>c</char> <char>e</char> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <value>value1</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <value>value1</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>attr2</localName> <qualifiedName>attr2</qualifiedName> <value>value2</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>attr3</localName> <qualifiedName>attr3</qualifiedName> <value>value3</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>w</char> <char>i</char> <char>t</char> <char>h</char> <char>o</char> <char>u</char> <char>t</char> <char>\s</char> <char>w</char> <char>h</char> <char>i</char> <char>t</char> <char>e</char> <char>\s</char> <char>s</char> <char>p</char> <char>a</char> <char>c</char> <char>e</char> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\s</char> <char>w</char> <char>i</char> <char>t</char> <char>h</char> <char>\s</char> <char>a</char> <char>\s</char> <char>w</char> <char>h</char> <char>i</char> <char>t</char> <char>e</char> <char>\s</char> <char>s</char> <char>p</char> <char>a</char> <char>c</char> <char>e</char> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <value>value1</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <value>value1</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>attr2</localName> <qualifiedName>attr2</qualifiedName> <value>value2</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>attr3</localName> <qualifiedName>attr3</qualifiedName> <value>value3</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |