Subject: RE: 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'])"/>
</xsl:template>
will give you your count.
Cheers,
Dave.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- xsl query
- Sawyer, Larry - Thu, 22 May 2003 14:09:21 -0400 (EDT)
- <Possible follow-ups>
- David Neary - Fri, 23 May 2003 03:32:51 -0400 (EDT) <=
|
|