From: Eric van der Vlist (vdv@dyomedea.com)
Date: 25/06/2001 - 09:47
Bonjour,
ROMAN Jean-François wrote:
>
> Il y a-t-il possibilité d'écrire les 2 lignes suivantes en 1 seule?
>
> <xsl:variable name="lib"><xsl:value-of select="./libelle" /></xsl:variable>
> <xsl:for-each select="//idValeursCodes/code[@libelle=$lib]/choix">
Oui, en utilisant la fonction "current()" qui identifie le noeud
contexte:
<xsl:for-each
select="//idValeursCodes/code[@libelle=current()/libelle]/choix">
Cordialement,
Eric van der Vlist
> ...
>
> Je n'y suis pas arrivé (mais je ne suis pas une référence!).
>
> Merci pour ma curiosité
> JFR
>
--
Pour y voir plus clair dans la nebuleuse XML...
http://dyomedea.com/formation/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
http://xsltunit.org http://4xt.org http://examplotron.org
------------------------------------------------------------------------
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (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 xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|