xsl-list
[Top] [All Lists]

Re: [xsl] Identity Transform losing special characters

2009-02-20 06:44:37
I guess this is the proper solution then:

<xsl:character-map name="x">
    <xsl:output-character character="&#160;" string="&amp;#160;"/>
</xsl:character-map>
    <xsl:output indent="yes" use-character-maps="x"/>

    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>


Cheers,
Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com

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