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[(_at_)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
--~------------------------------------------------------------------
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>
--~--