[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] boolean values


Subject: RE: [xsl] boolean values
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 28 Aug 2003 09:24:46 +0100

> Well, Matt, I'm still new to XSLT, nevertheless I would go 
> like this: (Hope I'm right and this helps)
> 
> ----------------------------------
> 	.
> 	.
>    <xsl:variable name="hasContractsTest">
> 	<xsl:call-template name="hasContracts">
> 		<xsl:with-param name="branding" select="$branding"/>
> 	</xsl:call-template>
>    </xsl:variable>
>    <xsl:variable name="hasContracts"
select="boolean(hasContractsTest)"/>

It's the right approach but wrong in the detail: converting an RTF to a
boolean always gives true. See my solution (hoping I got it right...).

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords