Test case v-lang02: org.apache.crimson.parser.XMLReaderImpl Passed

Test case v-lang02: org.apache.crimson.parser.XMLReaderImpl Passed

Tests a ISO language code with a subcode.

<!DOCTYPE root [
<!ELEMENT root EMPTY>
<!ATTLIST root xml:lang CDATA #IMPLIED>
]>
<root xml:lang="en-IN"/>

Expected resultActual result for org.apache.crimson.parser.XMLReaderImpl
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI>
                <localName>lang</localName>
                <qualifiedName>xml:lang</qualifiedName>
                <value>en-IN</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <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>
            <attribute>
                <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI>
                <localName>lang</localName>
                <qualifiedName>xml:lang</qualifiedName>
                <value>en-IN</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>