Subject: Re: xslt 2.0 regex
From: davep <davep@xxxxxxxxxxxxx>
Date: Sat, 17 Mar 2012 14:52:05 +0000
|
On 17/03/12 14:18, Imsieke, Gerrit, le-tex wrote:
On 2012-03-17 14:37, davep wrote:
<xsl:variable name='Name.re'
select='concat($NameStartChar.re,
"(", $NameChar.re,")*")'/>
then in use
<xsl:template match="*">
<xsl:if test="matches(@select, $Name.re,'x') ">
Is $Name.re supposed to match the entire @select attribute value,
Doh! No. It's a contains... or *pattern*.
thanks for that.
Analyse-string I guess.
I was too focussed on the regex.
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
|