Re: [xsl] regular expression issue in XSLT 2.0

Subject: Re: [xsl] regular expression issue in XSLT 2.0
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 22 Feb 2006 16:48:16 GMT
But how do you escape then the curly sign as a character?


It happens in two passes. Working backwards, you want a regexp 
something like
but to put that in an AVT you need to qupte every { by doubling it, this
quoting is completely blind to regexp syntax, it's just a string at that
level so just double all the { and end up with


xsl:analyze-string will take that as an AVt so unquote the braces and
pass  x{2}zzz\{ to the xpath regep engine, as required.


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

Current Thread