>I need to change a variable in XSL document at run-time while applying
>a xsl document over xml document through Xalan engine. This updated
>variable need to be put in the output document. Since a variable
>declared through <xsl:variable> construct cannot be updated, are there
>any other methods to update a xsl:variable at run-time?

This is a frequent issue with XSLT in general, not specific to Xalan.
You need to totally re-think what you're trying to do. Many of the XSLT
books can help explain this. Based on what you stated, you don't need
to use a variable for its own sake, but so that you can put a certain
value in the output document. Can you re-frame the problem like this:
For every [position in output tree], I need to place a value [string?
attribute? what type?] that was calculated from [data on input side]
by way of [formula, or just copied through].
.................David Marston

Reply via email to