RE: xsl query2003-05-23 00:30:39De : Sawyer, Larry [mailto:Larry(_dot_)Sawyer(_at_)FMR(_dot_)COM] 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
|
|