From: Verachten Bruno (Bruno.Verachten@atosorigin.com)
Date: 03/09/2003 - 09:50
Bonjour,
>pourtant ca devrait marcher.
>essaye ca :
><?xml version="1.0" encoding="UTF-8"?>
><xsl:stylesheet version="1.0"
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
> <xsl:variable name="uneListe">
> <tout>
> <truc>toto</truc>
> <truc>titi</truc>
> </tout>
> </xsl:variable>
> <xsl:template match="/">
> <xsl:for-each select="$uneListe/tout/truc">
> instruction
> </xsl:for-each>
> </xsl:template>
></xsl:stylesheet>
>tu vas avoir 2 fois "instruction".
Je ne sais pas quel moteur XSLT vous utilisez, mais XalanJ2 me
refuse votre stylesheet, ainsi qu'XSLTProc (XPath error Invalid type in $uneListe/tout/truc).
Bruno Verachten.
--
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
|