The two character sequence #x0D #x85 in a document entity must be normalized to a single newline.
<?xml version="1.1"?> <!DOCTYPE doc [ <!ELEMENT doc (#PCDATA)> <!ENTITY e " "> <!ATTLIST doc a CDATA #IMPLIED> ]> <doc>x&e;y</doc>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <char>x</char> <char>\n</char> <char>y</char> <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> <char>x</char> <char>\n</char> <char>\u85</char> <char>y</char> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |