[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] EXSLT replace to XSLT 2.0 replace


Subject: [xsl] EXSLT replace to XSLT 2.0 replace
From: "Szabo, Patrick \(LNG-VIE\)" <patrick.szabo@xxxxxxxxxxxxx>
Date: Wed, 14 Apr 2010 09:48:24 +0200

Hi,

I'm using Saxon 9 and XSLT 2.0

I'm currently updateing a few 1.0 Stylesheets to 2.0.
In one of those Stylesheets i've found this:

<xsl:value-of select="regexp:replace(.,
'(?:(.+@.+\.[a-zA-Z]+)|([\p{Lu}|\p{Ll}]\p{Ll}+)-([\p{Ll}]+))', 'g',
'$1$2$3')"/>

Is there a way to to that in 2.0 without EXSLT ?!
I - of course - wanted to try it with replace() but i cant seem to
figure it out.

best regards...

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
Keywords