Article View: fr.comp.text.xml
Article #9676Re: boucle for en xsl
From: Mikael
Date: Fri, 23 Feb 2001 21:40
Date: Fri, 23 Feb 2001 21:40
28 lines
1973 bytes
1973 bytes
Je crois que la boucle for est inutile.
J'ai le m�me r�sultat de la fa�on suivante :
<xsl:template name="famille" match="famille">
<xsl:param name="from" />
<xsl:if test="$to > $from">
<xsl:if test="self::node()[not(.=preceding::famille)]">
<xsl:element name="input">
<xsl:attribute name="type">checkbox</xsl:attribute>
<xsl:attribute name="name">fam<xsl:value-of
select="$from"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of
select="."/></xsl:attribute>
</xsl:element>
<xsl:value-of select="."/><br/><br/> <!-- Cause du probl�me :
j'obtiens tous les noeuds du fichier xml !!! -->
</xsl:choose>
<xsl:value-of select="$to"/>
<xsl:call-template name="famille">
<xsl:with-param name="from" select="$from+1"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:template>
Merci d'avance pour votre aide
Mikael
Technical Details
Message-ID:
<976l9u$f62$1@news2.isdnet.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!blackbush.xlink.net!nautilus.visp-europe.psi.com!newsfeed00.sul.t-online.de!t-online.de!grolier!nerim.net!news.worldonline.fr!jacui.paris.none.net!news.none.net!noos!isdnethub!not-for-mailReferences:
<976kta$f4j$1@news5.isdnet.net>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,c1fde71fb2dec641 X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-02-23 13:41:20 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!blackbush.xlink.net!nautilus.visp-europe.psi.com!newsfeed00.sul.t-online.de!t-online.de!grolier!nerim.net!news.worldonline.fr!jacui.paris.none.net!news.none.net!noos!isdnethub!not-for-mail From: "Mikael" <kgt@noos.fr> Newsgroups: fr.comp.text.xml Subject: Re: boucle for en xsl Date: Fri, 23 Feb 2001 22:40:03 +0100 Lines: 32 Message-ID: <976l9u$f62$1@news2.isdnet.net> References: <976kta$f4j$1@news5.isdnet.net> NNTP-Posting-Host: d048.dhcp212-74.cybercable.fr X-Trace: news2.isdnet.net 982964350 15554 212.198.74.48 (23 Feb 2001 21:39:10 GMT) X-Complaints-To: abuse@isdnet.net NNTP-Posting-Date: 23 Feb 2001 21:39:10 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400