Leave entity intact in XML + XSLT
- by Kuroki Kaze
I transform XML to (sort of) HTML with XSL stylesheets (using Apache Xalan). In XML there can be entities like —, which must be left as is. In beginning of XML file I have a doctype which references these entities. What should I do for entity to be left unchanged?
<!DOCTYPE article [
<!ENTITY mdash "—"><!-- em dash -->
]>
gives me SAXParseException: Recursive entity expansion, 'mdash' when encountering &mdash in XML text.