Subject: Re: [xsl] Setting a boolean value From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Sat, 22 Oct 2011 15:19:41 +0100 |
On 22 October 2011 15:13, Mark <mark@xxxxxxxxxxxx> 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')"/> > > These return the error "required type ... is boolean. > <xsl:with-param name="set-current" select="''"/> > <xsl:with-param name="set-current" select="'false'"/> > > And this returns the error: "An empty sequence is not allowed as the value > of...." > <xsl:with-param name="set-current" select="false"/> false() :) -- Andrew Welch http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Setting a boolean value, Martin Honnen | Thread | Re: [xsl] Setting a boolean value, G. Ken Holman |
Re: [xsl] Setting a boolean value, Martin Honnen | Date | Re: [xsl] Setting a boolean value, G. Ken Holman |
Month |