Tests construction of internal entity replacement text, using a complex example in the XML specification.
<?xml version='1.0'?> <!DOCTYPE test [ <!ELEMENT test (#PCDATA) > <!ENTITY % xx '%zz;'> <!ENTITY % zz '<!ENTITY tricky "error-prone" >' > %xx; ]> <test>This sample shows a &tricky; method.</test> <!-- Example 2 from XML spec 1.0 Appendix D -->
Expected result | Actual result for org.apache.crimson.parser.XMLReaderImpl |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>T</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>s</char> <char>a</char> <char>m</char> <char>p</char> <char>l</char> <char>e</char> <char>\s</char> <char>s</char> <char>h</char> <char>o</char> <char>w</char> <char>s</char> <char>\s</char> <char>a</char> <char>\s</char> <char>e</char> <char>r</char> <char>r</char> <char>o</char> <char>r</char> <char>-</char> <char>p</char> <char>r</char> <char>o</char> <char>n</char> <char>e</char> <char>\s</char> <char>m</char> <char>e</char> <char>t</char> <char>h</char> <char>o</char> <char>d</char> <char>.</char> <endElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> <attributes/> </startElement> <char>T</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>s</char> <char>a</char> <char>m</char> <char>p</char> <char>l</char> <char>e</char> <char>\s</char> <char>s</char> <char>h</char> <char>o</char> <char>w</char> <char>s</char> <char>\s</char> <char>a</char> <char>\s</char> <char>e</char> <char>r</char> <char>r</char> <char>o</char> <char>r</char> <char>-</char> <char>p</char> <char>r</char> <char>o</char> <char>n</char> <char>e</char> <char>\s</char> <char>m</char> <char>e</char> <char>t</char> <char>h</char> <char>o</char> <char>d</char> <char>.</char> <endElement> <namespaceURI/> <localName>test</localName> <qualifiedName>test</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |