Xpath et position()

"Nicolas Delaby" <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
Bonjour,
je rencontre une difficulté pour exprimer la position d'un noeud parmis tous
les autres noeuds qui portent le même nom, en xpath.
par exemple
<root>
<a/>
<b/>
...
<a/>
</root>

dans mon template qui match sur <a/>, j'aimerai obtenir la position du noeud
courant par rapport à l'ensemble des noeuds <a/>, et non pas par rapport à
l'ensemble des fils de <root/>.

Est-ce possible ?

Merci.
--

Nicolas Delaby
http://ticosax.free.fr/
http://dlgz.free.fr/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.