Mukul Gandhi wrote:
What's inside the variables $button1, $button2 and $button3 ?

On 5/29/08, Peter Nabbefeld<[EMAIL PROTECTED]>  wrote:
Hello!

This
        <xsl:message>Button1[extended] =<xsl:value-of
select="$button1"/></xsl:message>
        <xsl:message>Button2[extended] =<xsl:value-of
select="$button2"/></xsl:message>
        <xsl:message>Button3[extended] =<xsl:value-of
select="$button3"/></xsl:message>
        <xsl:message>Buttons-extended  =<xsl:value-of
select="boolean($button1) and boolean($button2) and
boolean($button3)"/></xsl:message>

results in this output:
        Button1[extended] = false
        Button2[extended] = false
        Button3[extended] = false
        Buttons-extended  = true

Could anybody please tell me, why? BTW: My first try was without the
"boolean"

Kind regards

Peter Nabbefeld



Hmm, maybe it is simply a string containing the text "false". XSLT 1.0 does not have a clear data type mechanism. When converted to a Boolean, any non-empty string gets converted to the Boolean value "true", if I remember correctly. Therefore

   boolean ($buttion1)

should also return "true".

Klaus

Reply via email to