This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

XSL Global Variable


Hi all,
  Suppose I have defined a variable at the ROOT
  of the XSL document , how can I access that 
  variable and change its value?

<xsl:stylesheet ....
  <xsl:variable name="gvar">0</xsl:variable>

  <xsl:template match="Increment">
  <!--Here i want to do $gvar=$gvar+1 -->
  </xsl:template>

</<xsl:stylesheet>

regards
chandra


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]