Re: [xsl] Variable: true or false

Subject: Re: [xsl] Variable: true or false
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Sat, 7 Apr 2001 09:01:36 +0100
Hi Tom,

> I do the transform on this XSL and get "true". I would have expected
> "false". Thought the boolean of an empty object would always be
> false.

You are right.  Setting a variable without using any content or a
select attribute should set the variable to the empty string (see
third bullet point at

> Using Xerces 1.4 and Xalan 1.1

I can only guess that this version of Xalan was buggy in this regard.
I think that Xalan 2 has been available for a while now - it's
definitely worth upgrading.  It tests fine with this version.

I hope that helps,


Jeni Tennison

 XSL-List info and archive:

Current Thread