RE: [xsl] xsl query

Subject: RE: [xsl] xsl query
From: David Neary <David@xxxxxxxxx>
Date: Fri, 23 May 2003 09:30:39 +0200
De : Sawyer, Larry [mailto:Larry.Sawyer@xxxxxxx]
> I am trying to find a solution to adding up the total number 
> of occurrences
> of a field in my xml file.   The field is 
> <severity>OK</severity>.

<xsl:template match="/">
  <xsl:value-of select="count(//severity[. = 'OK'])"/>

will give you your count.


 XSL-List info and archive:

Current Thread