xsl-list
[Top] [All Lists]

RE: setting params

2004-06-03 02:06:23

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




<Prev in Thread] Current Thread [Next in Thread>