cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <cr...@4dconcept.fr>
Subject Re: xsl:for-each increase integer variable value ???
Date Fri, 26 Mar 2004 16:40:39 GMT
Sorry, you're misunderstanding the way xslt works.
This can not work at all.
you may use <xsl:count> or position() or some <call-template>.

There is no counter like Java with xslt.

For more help, you can send a message to this mailing list : 
xsl-list@lists.mulberrytech.com


hope this helps
Lionel




At 17:24 26/03/2004 +0100, you wrote:
>hello
>I would like to use <xsl:for-each>, and for every run the variable should
>increase by let's say the value 10.
>How can I do that?
>
>I thought of something like
>
>a=0
><xsl:for-each select="name">
>a=a+10
><xsl:value-of select="a"/>
></xsl:for-each>
>
>
>thanks for your answer.
>
>--
>+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
>100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org

Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70


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


Mime
View raw message