This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Using Count() conditionally ??
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 24 Jun 2002 22:32:41 +0200
- Subject: Re: [xsl] Using Count() conditionally ??
- References: <sd174429.015@deltafunding.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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