This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: count 2 times
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] count 2 times
- From: "Alexander Gutman" <gutman at novosoft-us dot com>
- Date: Wed, 15 Aug 2001 12:46:58 +0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello.
Carlos Durand Silvestrin wrote:
> Is this correct?
>
> <xsl:if test="(count(delivery/origem/linha) = 0) or
> (count(delivery/destino/linha) = 0)">
> <input type="image" src="../images/roteiro.jpg"/>
> </xsl:if>
Yes, but the following is simpler:
<xsl:if test="not(delivery/origem/linha) or
not(delivery/destino/linha">
<input type="image" src="../images/roteiro.jpg"/>
</xsl:if>
--
Alexander E. Gutman
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list