On 22/10/2011 15:13, Mark wrote:
I have a boolean parameter and wonder if there is a "preferred" style
for setting it to 'false':
These two work but seem indirect and verbose:
<xsl:with-param name="set-current">
<xsl:text>false</xsl:text>
</xsl:with-param>
or
<xsl:with-param name="set-current" select="not('true')"/>
I don't know why the first works. boolean($set-current) will return
true, as will boolean() applied to any non-empty node-set.
The second is fine: not() applied to any non-empty character string
returns true. But writing false() is simpler.
Michael Kay
Saxonica
--~------------------------------------------------------------------
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>
--~--