[xsl] Variable Scope

Subject: [xsl] Variable Scope
From: Mark Anderson <mark@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 May 2012 23:22:38 +0000
Hi Guys

I use oxygen XML editor and notice some differences in variable scope between
MSXML and Saxon

<div class="one">
	<xsl:variable name="foo" select="'bar'"/>
</div>


<div class="two">
	<xsl:variable name="foo" select="'bar'"/>
</div>

If I transform with Saxon, everything is OK. If I transform with MSXML I get
duplicate variable error.

Which is correct? (Just curious)

Regards

Mark

Current Thread