xsl-list
[Top] [All Lists]

Re: [xsl] xpath 2 regex

2013-04-04 07:02:42
davep wrote:
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?

I am not entiry sure they are needed, maybe someone else can tell us, or maybe later on I will find time to make sense of the combined schema and XPath/XSLT regular expression syntax (which introduced the '^' and '$' on top of the schema regular expression syntax).





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