Ralph LeVan created XALANJ-2595:
-----------------------------------
Summary: Non-BMP characters mangled during XSLT transform
Key: XALANJ-2595
URL: https://issues.apache.org/jira/browse/XALANJ-2595
Project: XalanJ2
Issue Type: Bug
Security Level: No security risk; visible to anyone (Ordinary problems in
Xalan projects. Anybody can view the issue.)
Components: transformation
Reporter: Ralph LeVan
Assignee: Steven J. Hathaway
This XML:
<root>
<title>𐍀𐌰𐍂𐌹𐍃</title>
</root>
Run through this stylesheet:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:norm="ORG.oclc.util.NormalFormC"
xmlns:v="http://viaf.org/viaf/terms#"
exclude-result-prefixes="xsl norm v">
<xsl:output
encoding="UTF-8"
method="html"
version="4.0"/>
<xsl:template match="root">
<html>
<head><title><xsl:value-of
select="title"/></title></head>
<body><h1><xsl:value-of select="title"/></h1></body>
</html>
</xsl:template>
</xsl:stylesheet>
Produces this bogus output:
<?xml version="1.0" encoding="UTF-8"?>
<html>
<head><title>����������</title>
</head>
<body><h1>����������</h1>
</body>
</html>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]