[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Variables scope - weird behavior of msxml3 ?

Subject: RE: Variables scope - weird behavior of msxml3 ?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 23 Apr 2001 22:39:12 +0100
RE:  Variables scope - weird behavior of msxml3 ?
> Ok, msxml has a bug, but what about the following template:
> <xsl:template match="blabla">
> 	<xsl:variable name="var"/>
> 	<html>
> 		<xsl:variable name="var"/>
> 	</html>
> </xsl:template>
> It must be an error - local variables cannot be overlapped,
> but why this works in
> Xalan (xalan-j 2.0.1) and XT ? Can anybody check it ?

In the case of XT it is a "documented bug": xt implements an earlier version
of the spec in which local variables could be overridden in a nested scope.

I have to say I'm surprised that Xalan Java 2 doesn't report an error here.

Mike Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.