Tests LanguageID with Langcode - Subcode
<!DOCTYPE book [ <!ELEMENT book ANY> <!ATTLIST book xml:lang CDATA #REQUIRED> ]> <book xml:lang="en-US">It is written in English</book> <!-- Tests LanguageID with Langcode - Subcode -->
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>book</localName> <qualifiedName>book</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI> <localName>lang</localName> <qualifiedName>xml:lang</qualifiedName> <value>en-US</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>I</char> <char>t</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>w</char> <char>r</char> <char>i</char> <char>t</char> <char>t</char> <char>e</char> <char>n</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>E</char> <char>n</char> <char>g</char> <char>l</char> <char>i</char> <char>s</char> <char>h</char> <endElement> <namespaceURI/> <localName>book</localName> <qualifiedName>book</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P33/ibm33v01.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>book</localName> <qualifiedName>book</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI> <localName>lang</localName> <qualifiedName>xml:lang</qualifiedName> <value>en-US</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>I</char> <char>t</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>w</char> <char>r</char> <char>i</char> <char>t</char> <char>t</char> <char>e</char> <char>n</char> <char>\s</char> <char>i</char> <char>n</char> <char>\s</char> <char>E</char> <char>n</char> <char>g</char> <char>l</char> <char>i</char> <char>s</char> <char>h</char> <endElement> <namespaceURI/> <localName/> <qualifiedName>book</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |