Re: [xsl] Reference to variable cannot be resolved.

Subject: Re: [xsl] Reference to variable cannot be resolved.
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 14 Feb 2003 12:45:05 -0700 (MST)
Michael Kay wrote:
> If people don't understand that the same name can refer to different
> objects depending on the context, then they shouldn't be programming.

If people think that confusion is unwarranted when they say that "variables of
the same name can be nested, and top-level variables can be overridden in a
template, and in XSLT 2.0 you can get away with redeclaring a variable within
a template even though this is discouraged"  after having just definitively
stated that "a variable can never be changed or declared twice", then they
shouldn't be teaching XSLT.


  Mike J. Brown   |
  Denver, CO, USA |

 XSL-List info and archive:

Current Thread