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

Re: [xsl] xpath 2 regex


Subject: Re: [xsl] xpath 2 regex
From: davep <davep@xxxxxxxxxxxxx>
Date: Thu, 04 Apr 2013 12:52:44 +0100

Tks for the quick reply.

On 04/04/13 12:49, Martin Honnen wrote:
davep wrote:

If so, what patter matches a p element which starts with
the string "the quick brown" or contains "brown fox" please?

<xsl:template match="p[matches(., '(^the quick brown)|brown fox')]">...</xsl:template>

Are the brackets necessary Martin?







regards


--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


Current Thread
Keywords