[xsl] replaceing chars with entities

Subject: [xsl] replaceing chars with entities
From: "Szabo, Patrick \(LNG-VIE\)" <patrick.szabo@xxxxxxxxxxxxx>
Date: Wed, 2 Jun 2010 14:09:20 +0200
Hi,

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', '&#223;',
'i'), 'C$', '&#228;', 'i'), 'C<', '&#252;', 'i'), 'C6', '&#246;', '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 ?!

greetings

Patrick Szabo
 XSLT-Entwickler

Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146

Patrick.Szabo@xxxxxxxxxxxxx

LexisNexis Verlag ARD Orac GmbH & Co KG
Marxergasse 25, 1030 Wien
FN 8333f, Handelsgericht Wien
http://www.lexisnexis.at/

Current Thread