Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Question regarding XSL Question regarding XSLTo: NULL Date: 9/14/2009 3:21:00 PM Hi, I am really new to XSL. I was wondering if it is possible in xsl
to reassign variables.
so for instance this piece of code does not work:
<xsl:if test="$y <2">
<xsl:variable name="x" select="5" />
</xsl:if>
when i try and use x afterwards, it gives me the following error:
"Error during XSLT transformation: An unknown error has occurred ()"
The following code gives me an error as well:
<xsl:variable name="height"/>
<xsl:if test="$y <2">
<xsl:variable name="x" select="5" />
</xsl:if>
"Error during XSLT transformation: Variable binding shadows variable
binding within the same template."
I am not sure how to achieve what i am trying to do.
any help is appreciated.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
