xsl-list
[Top] [All Lists]

[xsl] copy-of converts hex to decimal

2009-10-08 05:46:12
Hi there,

can someone explain why xsl:copy-of converts hex values to decimal?
e.g. the node:

<HexDecTest>
    <Hex>&#x2160;</Hex>
    <Dez>&#8544;</Dez>
</HexDecTest>

is processed to:

<Result>
   <Hex>&#8544;</Hex>
   <Dez>&#8544;</Dez>
</Result>

using this template:

<xsl:template match="HexDecTest">
        <xsl:element name="Result">
            <xsl:copy-of select="Hex"/>
            <xsl:copy-of select="Dez"/>
        </xsl:element>
</xsl:template>

i expected the hex value unchanged,
matthias





--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>