Hi
I hav defined a variable and passing as a parameter to a template. It shd check if the param value is not empty and then use it.
How to check if the param is empty is not? This is how I Used...
<xsl:template match="root">
...
<xsl:variable name="var1">
<xsl:if test="TagA != '' ">
<tagx>123</tagx>
</xsl:if>
<xsl:variable>
...
<xsl:if test="TagY != '' ">
<xsl:call-template name="tempA">
<xsl:with-param name="var1" select="$var1"/>
</xsl:call-template>
</xsl:if>
...
</xsl:template>
<xsl:template name="tempA">
<xsl
aram name="var1"/>
<xsl:if test="$var1">
<abc><xsl:value-of select="$var1"/><abc>
</xsl:if>
</xsl:template>
........
but the <abc> tag is always generated either with empty value or with the param value.
Is it OK with the code?
Pls help!!
thanks
Sunitha