/ Published in: XSLT
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<xsl:template name="getValue"> <xsl:param name="tagId"></xsl:param> <xsl:choose> <xsl:when test="normalize-space(//item[@id=$tagId]) != ''"> <xsl:value-of select="string(//item[@id=$tagId])"/> </xsl:when> <xsl:otherwise> Tag is empty </xsl:otherwise> </xsl:choose> </xsl:template>
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)