How to improve variable overriding/overwriting in XSL?

Posted by ChrisBenyamin on Stack Overflow See other posts from Stack Overflow or by ChrisBenyamin
Published on 2010-05-17T21:53:25Z Indexed on 2010/05/21 14:10 UTC
Read the original article Hit count: 240

Filed under:
|
|
|

I want to do the following:

  1. Declare a variable
  2. Go into a if-statement
  3. Overwrite the variable

XSL says I can't declare a variable twice, so what can I do to improve this step?

Another approach was to check if a variable is set at all. I did this, because i skipped the first step and declared the variable in the if-statement. In another if-statement I wanted to check if the variable exists at all.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xslt