I have below xsl created Address1.xsl
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0">
<xsl:param name="FCode"/>
<xsl:param name="FName"/>
<xsl:template match="/">
<xsl:call-template name="Addtemplate"/>
</xsl:template>
<xsl:template name=" Addtemplate ">
<xsl:variable name="TownType">
<xsl:if test="$FCode!= ''">
<xsl:value-of select="ABCValue"/>
</xsl:if>
</xsl:variable>
<Add>
<addName>
<xsl:value-of select="$TownName"/>
</addName>
<addType>
<xsl:value-of select="$TownType"/>
</addType>
</Add>
</xsl:template>
</xsl:stylesheet>
In the second xsl Address2.xsl I want to import the value of addName.Tried below xsl but not getting the value.
Address2.xsl
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0">
<xsl:import href=" Address1.xsl "/>
<xsl:template match="/ ">
<xsl:variable name="TempVar">
<xsl:copy>
<xsl:call-template name="Addtemplate">
<xsl:value-of select=' addName'/>**<!-- I want addName value in the Address1.xsl to be mapped to TempVar variable -->**
</xsl:call-template>
</xsl:copy>
</xsl:variable>
</xsl:template>
</xsl:stylesheet>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…