cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Leangen" <dlean...@canada.com>
Subject RE: question on xsl
Date Sun, 21 Nov 2004 03:48:37 GMT

Hi, Andres,

Actually, I don't think this is the right list to be asking XSL specific
questions...

My advice, though, is to try the book "XSLT Cookbook" by Sal Mangano (ISBN:
0-596-00372-2). I've found it to be very helpful. It is also available on
O'Reilly Safari (safari.orielly.com).


Regards,
Dave




> -----Original Message-----
> From: Andres Taborda [mailto:antaborda@yahoo.com]
> Sent: 21 November 2004 11:44
> To: users@cocoon.apache.org
> Subject: question on xsl
>
>
> hello list,
>
> excuse me by the following question
>
> progamming in any language a value auto-increment is
> for ($i=1;$i<6;$i++)
>  $i+=1;
>
> in xsl how can make the auto-increment.
>
> I have the follow code, not make sum and
> auto-increment
>
> <!--value initial -->
> <xsl:variable name="posX">1</xsl:variable>
>
> <!-- this cicle have 5 element-->
> <xsl:for-each select="child::*">
> <xsl:variable name="posX">
> <xsl:value-of select="$posX + 1"/>
> </xsl:variable>
> </xsl:for-each>
>
>
> the output should be
> 1
> 2
> 3
> 4
> 5
> 6
>
> the ouput what display is
> 1
> 1
> 1
> 1
> 1
>
> some  know how make it?
>
> thanks
>
> _________________________________________________________
> Do You Yahoo!?
> Información de Estados Unidos y América Latina, en Yahoo! Noticias.
> Visítanos en http://noticias.espanol.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message