Subject: [xsl] xpath 2 regex From: davep <davep@xxxxxxxxxxxxx> Date: Thu, 04 Apr 2013 12:40:52 +0100 |
<xsl:template match="p[matches(normalize-space(), '^[the quick] | [brown fox]' )]"
I'm having problems interpreting this. I think <p> the quick .....</p> matches <p>the quick... </p> matches
what role does the | take please? a simple alternate?
http://www.w3.org/TR/xmlschema-2/#regexs seems to show this
If so, what patter matches a p element which starts with the string "the quick brown" or contains "brown fox" please?
-- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Best way of preserving co, Tony Graham | Thread | Re: [xsl] xpath 2 regex, Martin Honnen |
Re: [xsl] Best way of preserving co, Tony Graham | Date | Re: [xsl] xpath 2 regex, Martin Honnen |
Month |