Re: [xsl] Passing parameters to an indirectly called template after matching.

Subject: Re: [xsl] Passing parameters to an indirectly called template after matching.
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 17 Apr 2008 13:06:12 +0200
Kannan wrote:

    <xsl:template match="ATag">
        <xsl:call-template name="ReplaceInXMLString">
            <xsl:with-param name="theNodeMatch" select="./*"/>
            <xsl:with-param name="stringToBeReplaced" select="&quot;'&quot;"/>
            <xsl:with-param name="replacementString" select="&quot;''&quot;"/>

If you want to pass parameters to a named template then that named template should have xsl:param declarations e.g.


    <xsl:template name="ReplaceInXMLString">
        <xsl:param name="theTagMatch"/>

<xsl:param name="stringToBeReplaced"/> <xsl:param name="replacementString"/>

You can also define default values e.g.
          <xsl:param name="stringToBeReplaced" select="&quot;'&quot;"/>


--


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

Current Thread