Re: [xsl] No of Times Named Template called

Subject: Re: [xsl] No of Times Named Template called
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 13 Mar 2008 18:57:29 +0100
Senthilkumaravelan K wrote:

I use java XALAN processor.

I think Xalan supports the EXSLT extension function node-set so you can try



<xsl:variable name="result"> <xsl:for-each select="report/result"> <xsl:if test="normalize-space(resp/fault)=normalize-space(exp_resp/fault)"> <xsl:call-template name="STATUS_DETECTION"> <xsl:with-param name="my-param" select="S" /> </xsl:call-template> </xsl:if> </xsl:for-each> </xsl:variable> <xsl:variable name="no-of-S" xmlns:exslt="http://exslt.org/common"; select="count(exslt:node-set($result)/img[contains(@src, 'success')])" />

No of S<xsl:value-of select="$no-of-S" />

--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread