Re: [xsl] Using Count() conditionally ??

Subject: Re: [xsl] Using Count() conditionally ??
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Mon, 24 Jun 2002 22:32:41 +0200
KUMAR NINGASHETTY wrote:
Hi ..
     I am trying to count the total number of 416's and
> 415's in the following xml ... Is there is anyway to
> use predicates in count function  to acheive this.

It depends on the context, but try starting with
 count(//text()[.='415' or .='416'])

J.Pietschmann


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread