[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: difference in regexp matches() and analyze-string
Ruud Grosmann wrote:
<xsl:template match="al"> <xsl:variable name='txt' select="./text()"/> <xsl:variable name='re2' select="concat('^(', '2\.)', '\s+(.*)$')" as="xs:string"/> I think you want <xsl:analyze-string select="$txt" regex="{$re2}" > here to have the constructed string bound to re2 as the regular expression and not the literal string "$re2" -- Martin Honnen http://JavaScript.FAQTs.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|