xsl-list
[Top] [All Lists]

Re: [xsl] No of Times Named Template called

2008-03-13 10:57:57
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--