Updating variables in XSL

Posted by Stroboskop on Stack Overflow See other posts from Stack Overflow or by Stroboskop
Published on 2010-05-04T10:11:25Z Indexed on 2010/05/04 10:28 UTC
Read the original article Hit count: 189

Filed under:
|

Is there any way in XSL to update a global variable?

I want to check what elements i already transformed and act accordingly. That would require me to somehow add the names of the elements to some sort of list and update it each time a new element is transformed.

But since xsl:variable isn't "variable" in the sense one would expect, i have no way of adding anything to it once it has been defined.

I have multiple included data files, so using xsl functions that only know the current set of nodes will not help.

© Stack Overflow or respective owner

Related posts about xslt

Related posts about xsl