This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: count 2 times


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]