-
call-template
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>
<xsl therwise><xsl:value-of select="anno"/></xsl therwise>
</xsl:choose>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks