[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[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 class="two">
	<xsl:variable name="foo" select="'bar'"/>

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

Which is correct? (Just curious)



Current Thread