Re: [xsl] count 2 times

Subject: Re: [xsl] count 2 times
From: "Alexander Gutman" <gutman@xxxxxxxxxxxxxxx>
Date: Wed, 15 Aug 2001 12:46:58 +0700
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


Current Thread