Tests the Element Valid VC (clause 3) by including a child element not permitted by a mixed content model.
<!DOCTYPE root [ <!ELEMENT root (#PCDATA|root)*> <!ELEMENT exception (#PCDATA)> ]> <root>this is ok <exception>this isn't</exception> </root>
Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <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>o</char> <char>k</char> <char>\s</char> <startElement> <namespaceURI/> <localName>exception</localName> <qualifiedName>exception</qualifiedName> <attributes/> </startElement> <char>t</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>i</char> <char>s</char> <char>n</char> <char>'</char> <char>t</char> <endElement> <namespaceURI/> <localName>exception</localName> <qualifiedName>exception</qualifiedName> </endElement> <char>\s</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/el03.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <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>o</char> <char>k</char> <char>\s</char> <startElement> <namespaceURI/> <localName>exception</localName> <qualifiedName>exception</qualifiedName> <attributes/> </startElement> <char>t</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>i</char> <char>s</char> <char>n</char> <char>'</char> <char>t</char> <endElement> <namespaceURI/> <localName>exception</localName> <qualifiedName>exception</qualifiedName> </endElement> <char>\s</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |