[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

replaceing chars with entities

Subject: replaceing chars with entities
From: "Szabo, Patrick \(LNG-VIE\)" <patrick.szabo@xxxxxxxxxxxxx>
Date: Wed, 2 Jun 2010 14:09:20 +0200
 replaceing chars with entities
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.