Test case o-p48pass1: org.apache.crimson.parser.XMLReaderImpl Passed

Test case o-p48pass1: org.apache.crimson.parser.XMLReaderImpl Passed

Valid use of contentspec, element content models, choices, sequences and content particles within an element type declaration. The optional character following a name or list governs the number of times the element or content particle may appear.

<!DOCTYPE doc
[
<!ELEMENT doc ANY>
<!ELEMENT a (doc)>
<!ELEMENT b ((doc|a?))>
<!ELEMENT c ((a,b))>
<!ELEMENT d (doc*)>
<!ELEMENT e (doc+)>
<!ELEMENT f (doc?)>
<!ELEMENT g ((a,b)*)>
<!ELEMENT h ((a,b)?)>
<!ELEMENT i ((a,b)+)>
]>
<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/>
    </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/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>