This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes xsl variables question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xsl variables question" Watch "xsl variables question" New topic
Author

xsl variables question

dee pale
Greenhorn

Joined: Jul 18, 2003
Posts: 3
In xsl can we change the value of the variable after defining it once.
Eg:
--------------------
<!-- global variables-->
<xsl:variable name="firsttime" select="0" />
<xsl:variable name="temp" select="0" />
<!-- if statement in a template-->
<xsl:if test="temp='0' and firsttime='0'">
<xsl:variable name="firsttime" select="1" />
</xsl:if>
<!-- end-->
--------------------
Will the value of firsttime variable change to 1 after that or will it be 0 after the if loop
if this does not change its value can any one suggest a method for changing its value..
Thanks
Dee
J stewart
Greenhorn

Joined: Jul 24, 2003
Posts: 2
No.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xsl variables question
 
Similar Threads
null value
xsl count
Need help with some conditional logic
do/while in XSLT
xsl variable and xsl:if