Subject: Re: [xsl] Determine position in node sequence based on criteria From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Wed, 30 Jun 2010 10:24:10 +0100 |
> ../s[matches(@c, '^[ab]$') and matches(., $re)]/position() > > obviously wrong since it will always return 1, given the above XML, e.g., I need the position() in ../s not the position() of the resulting nodeset from the match criteria. It sounds like instead of /position() you want /preceding-sibling::s wrapped in a count(1 + .....) -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Determine position in nod, Dimitre Novatchev | Thread | Re: [xsl] Determine position in nod, Michael Kay |
Re: [xsl] Recursive function proble, Nic Gibson | Date | Re: [xsl] Recursive function proble, Emmanuel Bégué |
Month |