Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1. How to give an initial value in a variable.
2. and then reset it within a looping structure In XSLT 1.0
Posted

1 solution

Short answer? Variables in XSLT are write once only so you can't change the value after the initial assignment.

"The best way to think about an xsl:param or an xsl:variable element is that once you associate a parameter with a name and content, that element is immutable;"

From MSDN[^]
 
Share this answer
 
v2
Comments
Member 10770181 23-Apr-14 14:36pm    
I have been asked to develop code to initialize a variable and to then reset it within a looping structure with XSLT 1.0.

What I understand from your comment - that is in not possible ?

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