xsl-list
[Top] [All Lists]

Re: [xsl] Identity Transform losing special characters

2009-02-20 12:42:44
Always insightful!  Thanks all for the help on this.  As usual, the
result/behavior is quite expected.

Karl..

On Fri, Feb 20, 2009 at 4:44 AM, Jesper Tverskov
<jesper(_dot_)tverskov(_at_)gmail(_dot_)com> wrote:
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>
--~--



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