This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: news
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] news
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 19 Feb 2001 20:43:50 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> >> Can anyone please tell me how to test whether a variable has been
> defined?
> >
> >There is no such test. ...
>
> What if the variable may, or may not, be defined as a global
> variable in a
> stylesheet which imports or includes the stylesheet you are writing?
It's always known at compile time which variables are in scope, because
xsl:import and xsl:include can be resolved at compile time. Therefore,
there's no point in having a run-time test on the existence of a variable,
any more than there is in C or Java.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list