xsl-list
[Top] [All Lists]

RE: boolean values

2003-08-28 01:24:46
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



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