xsl-list
[Top] [All Lists]

[xsl] Unicode character decimal representation problem when copying the XML

2010-10-13 10:45:40
Hi,

I am trying to copy the input XML to output, so basically output
should be same as input. The problem is that the Unicode character
decimal representations get converted to corresponding characters in
the generated xml. e.g. 'número' get converted to 'número'. I
don't want this to happen. I tried lot of things related to output
method, encoding, saxon extension attributes etc but problem is not
resolved. I use SAXON 9.2 XSLT transformer. Following is my XSLT code:

<xsl:stylesheet version="1.0"
xmlns:odm="http://www.cdisc.org/ns/odm/v1.3";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:xsi="http://www.w3c.org/2001/XMLSchema-instance";
xmlns:def="http://www.cdisc.org/ns/def/v1.0";
xmlns:xlink="http://www.w3c.org/1999/xlink";
xmlns:OpenClinica="http://www.openclinica.org/ns/openclinica_odm/v1.3";
xmlns:fn="http://www.w3.org/2005/02/xpath-functions";
xmlns:saxon="http://icl.com/saxon";
extension-element-prefixes="saxon">

    <xsl:output method="xml" encoding="UTF-8" />
    <xsl:template match="/">
     <xsl:copy-of select="." />
     </xsl:template>
</xsl:stylesheet>

Please suggest what can solve the problem.

Thanks,
Pradnya

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--