Click here to Skip to main content
15,882,464 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi ,

how to use the declare the variable in globally and use it other palce in XSLT
please see my code black

	<xsl:for-each select ="//DATEINFORMATION">
<xsl:variable name ="TotalAllMonthDaysOverrides" select ="$TotalAllMonthDays - $TotalOverrides"/>
<xsl:variable name="OverrideRate" select="$TotalAllMonthDaysOverrides"></xsl:variable>

Here the $TotalAllMonthDays and $TotalOverrides containing some integer values ..
now how can i use the OverrideRate variable at out side of the for each loop.
and also if every time the loop inside i need to add the TotalAllMonthDaysOverrides value and store into the OverrideRate variable.

That means
OverrideRate = TotalAllMonthDaysOverrides + TotalAllMonthDaysOverrides
Updated 30-Jun-11 20:10pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900