[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Setting a boolean value

Subject: Re: Setting a boolean value
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 22 Oct 2011 10:19:51 -0400
Re:  Setting a boolean value
At 2011-10-22 07:13 -0700, you wrote:
I have a boolean parameter and wonder if there is a "preferred" style for setting it to 'false':

false() and true() are the functions one typically uses to set boolean variables and parameters. One can also use comparisons.


I hope this helps.

. . . . . . . . Ken

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"/>


Thanks,
Mark


--
Contact us for world-wide XML consulting and instructor-led training
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/s/
G. Ken Holman                   mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.