Re: transformation xml

Tiscar Sebastien <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <001301c65886$f4e86250$a7021cac@ODIN11>
effectivement count(preceding::*) devrait résoudre le problème


----- Original Message -----
From: "Eric van der Vlist" <[email protected]>
To: <[email protected]>
Sent: Wednesday, April 05, 2006 6:56 AM
Subject: [xml-tech] Re: transformation xml


Bonjour,
Le mardi 04 avril 2006 à 21:51 +0200, antisavicarth a écrit :
> Pour reformuler le pb, je cherche à créer un attribut id pour chaque noeud
> à partir du xsl, ce id commençant à 2 et s'incrémentant au fil des noeuds.

Pour ce type de problème, le plus simple est généralement d'utiliser la
fonction XPath "count" pour compter un nombre d'éléments précédents
pouvant jouer le rôle de compteur.

Voir http://xmlfr.org/documentations/faq/010123-0004 ...

Cordialement,

Eric van der Vlist

--
GPG-PGP: 2A528005
Curious about Relax NG? Read my book online.
                                   http://books.xmlschemata.org/relaxng/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


-- Attached file included as plaintext by Ecartis --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBEM1wEDvn+ZCpSgAURAnTdAJ4m3df1FykT1hjvd7mXQsgJ90RsywCglMhE
lG1FqJSrwykWMdAXWemIKbc=
=k5EF
-----END PGP SIGNATURE-----


--
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.