RE: [xsl] setting params

Subject: RE: [xsl] setting params
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 3 Jun 2004 10:06:23 +0100
> 
> So
> <xsl:param name="hyphenate">true</xsl:param> is true and
> <xsl:param name="hyphenate">false</xsl:param> is also true?
> So <xsl:param name="hyphenate" select="'false'"/> is the right way?
> 



No, if you want a boolean value it's better to declare it as

<xsl:param name="hyphenate" select="false()"/>

rather than declaring a string and relying on conversion to boolean

Then you don't hit the problem that boolean('false') is true.

Michael Kay



Current Thread