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'])"/> </xsl:template> will give you your count. Cheers, Dave. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl query, Michael Kay | Thread | [xsl] Parent of context node, Chris Loschen |
RE: [xsl] Maintaining character ent, Edward . Middleton | Date | [xsl] XSLT 2/XPath 2 roadmap, Frédéric Laurent |
Month |