xsl-list
[Top] [All Lists]

Re: regular expression issue in XSLT 2.0

2006-02-22 09:48:16

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
   x{2}zzz\{
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

   x{{2}}zzz\{{


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.

David


________________________________________________________________________
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:
http://www.star.net.uk
________________________________________________________________________

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