xsl-list
[Top] [All Lists]

Re: [xsl] xslt 2.0 regex

2012-03-17 09:52:16
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

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