Re: transformation xml

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.french.tech
Organization Dyomedea (http://dyomedea.com)
Message-ID <[email protected]>
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-----
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.