Re: Variables dans document()
Eric van der Vlist <[email protected]>
| Newsgroups | gmane.text.xml.french.tech |
|---|---|
| Organization | Dyomedea (http://dyomedea.com) |
| Message-ID | <[email protected]> |
Le jeudi 23 février 2006 à 14:21 +0100, [email protected] a écrit : > J'ai cru comprendre ca pour le changement de noeuds. Il y a moyen de > contourner ? Oui, en mémorisant dans une variable le noeud dont vous avez besoin, par exemple : <xsl:template match="liste"> <xsl:variable name="liste" select="."/> <xsl:for-each select="document($article_origine)/ARTICLE/motclefs//mot"> .../... <xsl:apply-templates select="$liste/theme/fichier"> <xsl:with-param name="mot_en_cours" select="$mot"/> </xsl:apply-templates> 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) iD8DBQBD/bhlDvn+ZCpSgAURAmKDAKCKvW5tOOVVJlbIl/9MFkgNlC5EsgCffZMq P8jjbIwV8/050Qm7mDuNeqg= =mwag -----END PGP SIGNATURE-----