Passing parameter from one template to another template in xsl

Passing parameter from one template to another template in xsl is given below:
Using with parameter tag it is possible to pass parameter one template to another.

<xsl:template match="Address">
  <xsl:apply-templates select="./Name" >
    <xsl:with-param name="N1" select="urlD:decode(N1)"></xsl:with-param>
  </xsl:apply-templates>
</xsl:template>

Now Get this ‘N1’ parameter in another template, and use it

<xsl:template match="Name">
  <xsl:param name="N1"></xsl:param>
</xsl:template>
Advertisements

1 thought on “Passing parameter from one template to another template in xsl”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s