Subject: RE: [xsl] is it possible xpath expression [A-Z]? From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 27 Nov 2009 18:11:08 -0000 |
> Hi all, i've a problem and a question for you. I know that is > possible to build xpath expression like this: > > <xsl:template match="mets:div[@LABEL[^Pagina [0-9]+$]"/> No, this isn't a valid XPath expression. You're mixing XPath syntax with regular expression syntax. You need <xsl:template match="mets:div[matches(@LABEL, '^Pagina [0-9]+$')]"/> The second argument to matches can be any regular expression (conforming to the rules for regular expressions defined in the XPath specification), including of course regular expressions like '[A-Z]*'. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] is it possible xpath expr, Michael Müller-Hille | Thread | Re: [xsl] is it possible xpath expr, ivanmacculi\@libero\ |
RE: [xsl] good reference for XSLT 2, Michael Kay | Date | RE: [xsl] Value of the variable, Michael Kay |
Month |