I have a variable:
<xsl:variable name="code" select="F2"/>
can I reinitializing it anywhere else in my code? is it possible?
I need save the current node in it and determine whether rejected it or pass in.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
xsl:variables cannot be reassigned ‘explicitly’, although their scope is limited to the current construct (e.g. xsl:template or xsl:for-each), and so will be ‘re-initialized’ as it traverses to the next ‘each’.
xsl:variables can be pointed to a node, i.e.
and then used e.g.