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

Re: [xsl] xsl:analyze-string explanation needed


Subject: Re: [xsl] xsl:analyze-string explanation needed
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 20 Jul 2006 14:39:16 +0100

> Can someone explain the operation of this element and how I can get
> the output of either one OR the other branch, but not both? 

make the regex match (or not) the whole string (by adding .*$ to the end of the
regex), and if there is a possibility that the string takes more than one
line, setting the flags to make sure . includes the newline character)

David


Current Thread