Tests invalid TokenizedType which is against P56 VC: One ID per Element Type. The element "a" has two ID attributes "first" and "second".
<?xml version="1.0"?> <!-- validity constraint check for Production 56(Negative Test)--> <!DOCTYPE tokenizer [ <!ELEMENT tokenizer ANY> <!ELEMENT a EMPTY> <!ATTLIST a first ID #REQUIRED> <!ATTLIST a second ID #REQUIRED> ]> <tokenizer> <a first = "AC1999" second="BC1999"></a> This is a Negative validity test for ID. There is more than attribute of type ID for the element a </tokenizer>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>tokenizer</localName> <qualifiedName>tokenizer</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>first</localName> <qualifiedName>first</qualifiedName> <value>AC1999</value> <type>ID</type> </attribute> <attribute> <namespaceURI/> <localName>second</localName> <qualifiedName>second</qualifiedName> <value>BC1999</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</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>v</char> <char>a</char> <char>l</char> <char>i</char> <char>d</char> <char>i</char> <char>t</char> <char>y</char> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>\s</char> <char>f</char> <char>o</char> <char>r</char> <char>\s</char> <char>I</char> <char>D</char> <char>.</char> <char>\n</char> <char>T</char> <char>h</char> <char>e</char> <char>r</char> <char>e</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>m</char> <char>o</char> <char>r</char> <char>e</char> <char>\s</char> <char>t</char> <char>h</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>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>I</char> <char>D</char> <char>\s</char> <char>f</char> <char>o</char> <char>r</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>a</char> <char>\n</char> <char>\n</char> <endElement> <namespaceURI/> <localName>tokenizer</localName> <qualifiedName>tokenizer</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/invalid/P56/ibm56i06.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>tokenizer</localName> <qualifiedName>tokenizer</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>first</localName> <qualifiedName>first</qualifiedName> <value>AC1999</value> <type>ID</type> </attribute> <attribute> <namespaceURI/> <localName>second</localName> <qualifiedName>second</qualifiedName> <value>BC1999</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>a</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>v</char> <char>a</char> <char>l</char> <char>i</char> <char>d</char> <char>i</char> <char>t</char> <char>y</char> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>\s</char> <char>f</char> <char>o</char> <char>r</char> <char>\s</char> <char>I</char> <char>D</char> <char>.</char> <char>\n</char> <char>T</char> <char>h</char> <char>e</char> <char>r</char> <char>e</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>m</char> <char>o</char> <char>r</char> <char>e</char> <char>\s</char> <char>t</char> <char>h</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>o</char> <char>f</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>I</char> <char>D</char> <char>\s</char> <char>f</char> <char>o</char> <char>r</char> <char>\s</char> <char>t</char> <char>h</char> <char>e</char> <char>\s</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>a</char> <char>\n</char> <char>\n</char> <endElement> <namespaceURI/> <localName/> <qualifiedName>tokenizer</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |