xsl-list
[Top] [All Lists]

[xsl] Variable Scope

2012-05-30 18:23:20
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>