Test case rmt-036: com.jclark.xml.sax.SAX2Driver Failed

Test case rmt-036: com.jclark.xml.sax.SAX2Driver Failed

Has an NMTOKENS attribute containing a NEL character that comes from a character reference in an internal entity. Because NEL is not in the S production (even though real NELs are converted to LF on input), this is invalid in both XML 1.0 and 1.1.

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Has an NMTOKENS attribute containing a NEL character that comes from a
     character reference in an internal entity.  Because NEL is not in the
     S production (even though real NELs are converted to LF on input),
     this is invalid in both XML 1.0 and 1.1. -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo bar  NMTOKENS #IMPLIED>
<!ENTITY val "abc&#x85;def">
]>
<foo bar="&val;" />
Expected resultActual result for com.jclark.xml.sax.SAX2Driver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>foo</localName>
        <qualifiedName>foo</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>bar</localName>
                <qualifiedName>bar</qualifiedName>
                <value>abc\u85def</value>
                <type>NMTOKENS</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>foo</localName>
        <qualifiedName>foo</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>foo</localName>
        <qualifiedName>foo</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>bar</localName>
                <qualifiedName>bar</qualifiedName>
                <value>abc\u85def</value>
                <type>CDATA</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>foo</localName>
        <qualifiedName>foo</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>