/ Published in: XSLT
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>