xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meena" <meenakshi.sarvago...@wipro.com>
Subject regarding addition in xsl
Date Wed, 06 Feb 2002 10:33:44 GMT
I have a param in my template. and i've assigned a value '1' to it.
This template is called recursively from within itself. I want to keep incrementing the param
everytime this template is called. Is it possible to do so in xsl?

<xsl:apply-templates select="test">
  <xsl:with-param name="number">1</xsl:with-param>

<xsl:template match="test">
<xsl:param name="number">

<xsl:apply-templates select="test">
   <xsl:with-param name="number" select="$number+1"/>


View raw message