You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Guoliang Cao <ca...@ispsoft.com> on 2000/11/20 19:24:34 UTC

Is there a way to modify xsl:variable?

Hi,

I'm wondering if I can use something like this. Or is there a way to
modify a variable and reuse it repeatedly in xsl?  Thanks.

...
<xsl:variable name="my_var" select="???"/>

<template match="???">
  <xsl:variable name="my_var" select="$my_var + 1"/>
  <cur><value-of select="$my_var"/></cur>
</template>
...