Subject: [xsl] Can I use a boolean variable in an xsl:if test From: Ken Goodridge <goodridgehunting@xxxxxxxxx> Date: Tue, 8 Feb 2005 07:38:53 -0800 (PST) |
I've been using the following xsl with success, but I am seeing the xsl:if not work properly in another installation. In both cases I get <debug><show>false</show><time>60000</time></debug>, but in one case the noshow shows. Does this code break the rules or am I seeing a bug in the xsl transform? In both cases I'm using xalan. I can check to see if the versions are different if someone thinks that may help. <xsl:template name="my_template"> <xsl:param name="time"/> <!-- Don't show if time is one minute --> <xsl:variable name="show"> <xsl:value-of select = "$time != 60000" /> </xsl:variable> <debug> <show><xsl:value-of select = "$show" /></show> <time><xsl:value-of select = "$time" /></time> </debug> <xsl:if test="$show"> <noshow><xsl:value-of select = "$show" /></noshow> </xsl:if> </xsl:template> __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT use cases; data-cent, David Carlisle | Thread | Re: [xsl] Can I use a boolean varia, David Carlisle |
Re: [xsl] Move one node in xml down, Sian Mace | Date | Re: [xsl] Move one node in xml down, Joris Gillis |
Month |