Subject: Re: [xsl] replaceing chars with entities From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Wed, 02 Jun 2010 14:18:01 +0200 |
I'm using XSLT 2.0 and Saxon 9 Im trying to replace certain chars with entities like this:
<xsl:template match="text()"> <xsl:value-of select="replace(replace(replace(replace(., 'C', 'ß', 'i'), 'C$', 'ä', 'i'), 'C<', 'ü', 'i'), 'C6', 'ö', 'i')" disable-output-escaping="yes"/> </xsl:template>
It just doesn't seem to to anything. If i do this:
<xsl:template match="text()"/>
all the text from the document is gone so the template matches...it just doesn't replace anything :-/
Any ideas ?!
<xsl:character-map name="map1"> <xsl:output-character character="C" string="&#223;"/> ... </xsl:character-map>
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] replaceing chars with entitie, Szabo, Patrick \(LNG | Thread | AW: [xsl] replaceing chars with ent, Szabo, Patrick \(LNG |
[xsl] replaceing chars with entitie, Szabo, Patrick \(LNG | Date | AW: [xsl] replaceing chars with ent, Szabo, Patrick \(LNG |
Month |