Test case valid-sa-046: org.apache.crimson.parser.XMLReaderImpl Passed

Test case valid-sa-046: org.apache.crimson.parser.XMLReaderImpl Passed

Test demonstrates that when more than one AttlistDecl is provided for a given element type, the contents of all those provided are merged.

<!DOCTYPE doc [
<!ELEMENT doc (#PCDATA)>
<!ATTLIST doc a1 CDATA "v1">
<!ATTLIST doc a2 CDATA "v2">
]>
<doc></doc>
Expected resultActual result for org.apache.crimson.parser.XMLReaderImpl
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>a1</localName>
                <qualifiedName>a1</qualifiedName>
                <value>v1</value>
                <type>CDATA</type>
            </attribute>
            <attribute>
                <namespaceURI/>
                <localName>a2</localName>
                <qualifiedName>a2</qualifiedName>
                <value>v2</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>a1</localName>
                <qualifiedName>a1</qualifiedName>
                <value>v1</value>
                <type>CDATA</type>
            </attribute>
            <attribute>
                <namespaceURI/>
                <localName>a2</localName>
                <qualifiedName>a2</qualifiedName>
                <value>v2</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>