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]
Other format: [Raw text]

Re: Using Count() conditionally ??


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


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