Re: Xpath et position()

Tiscar Sebastien <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <009c01c658b6$73792850$a7021cac@ODIN11>
j aurais plutôt écrit count(preceding-sibling::A)+1



----- Original Message -----
From: "Nicolas Delaby" <[email protected]>
To: <[email protected]>
Sent: Wednesday, April 05, 2006 12:54 PM
Subject: [xml-tech] Re: Xpath et position()


>
> Si ce n'est pas possible compte tenu de ce que vous cherchez à faire,
> vous pouvez compter les éléments <a/> précédents pour obtenir le même
> résultat : "count(preceding::a) + 1" devrait faire l'affaire!
>
>
Voilà qui m'est bien utile.
Je vous remercie grandement pour cette astuce !
--

Nicolas Delaby
http://ticosax.free.fr/
http://dlgz.free.fr/


--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !

Liste de diffusion "[email protected]" (http://xmlfr.org).

Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.

Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a [email protected]
(mailto:[email protected]?Subject=unsubscribe)
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.