xsl-list
[Top] [All Lists]

Re: Can I use a boolean variable in an xsl:if test

2005-02-08 09:24:13
Tempore 16:58:35, die 02/08/2005 AD, hinc in xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Michael Kay <mike(_at_)saxonica(_dot_)com>:

<xsl:variable name="show">
  <xsl:value-of select = "$time != 60000" />
</xsl:variable>
<xsl:variable name="show" select="$time != 60000" />

I simply have no idea why this verbose, inefficient, and often incorrect
style using <xsl:value-of> within <xsl:variable> has become so popular.

I started having this nasty tendency due to analogy with 'xsl:attribute':

you have to write;
<xsl:attribute name="href">
        <xsl:value-of select="@node"/>
</xsl:attribute>

because this isn't possible:
<xsl:attribute name="href" select="@node"/>

regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
Gaudiam omnibus traderat W3C, nec vana fides

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--