xsl-list
[Top] [All Lists]

[xsl] replaceing chars with entities

2010-06-02 07:09:51
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(., 'ß', '&#223;', 
'i'), 'ä', '&#228;', 'i'), 'ü', '&#252;', 'i'), 'ö', '&#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(_dot_)Szabo(_at_)lexisnexis(_dot_)at

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




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