RE: [xsl] lookaheads in XSLT2 regexes

Subject: RE: [xsl] lookaheads in XSLT2 regexes
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 1 Mar 2010 11:19:05 -0000
> This sounds like just what I want.  It isn't for a production 
> system, and one step in a pipeline of transformations for a 
> one-off conversion.  However I have a problem:  When I put ! 
> into the flags attribute of analyze-string I get the following error:
> 
>  FORX0001: Invalid character '!' in regular expression flags
> 
> from:
> 
>  <xsl:analyze-string select="$str" regex="{$abbr[1]}" flags="!">
> 

Sorry, it turns out it's implemented for matches(), tokenize(), and
replace(), but not for xsl:analyze-string.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

Current Thread