Hi!

i need help with code inside call template. I need verify if $type=$nome but in two different template. My code is not correct..help..

<xsl:template match="immagine">
<xsl:variable name="nome"><xsl:value-of select="draw_name"/></xsl:variable>
<xsl:variable name="estensione"><xsl:value-of select="xlink_href"/></xsl:variable>
</xsl:template>

<xsl:template match="link">

<xsl:variable name="type">
<xsl:value-of select="//DOCUMENT/DOCXML/response/result/doc/str[@name='document_type']"/>
</xsl:variable>

<xsl:choose>
<xsl:when test="$seq"=''>
<xsl:call-template name="immagine">
<xsl:if test="$type=$nome"><xsl:value-of select="$type"/>
</xsl:if>
</xsl:call-template>
</xsl:when>
<xsltherwise><xsl:value-of select="anno"/></xsltherwise>
</xsl:choose>