/ 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]) != ''"> not empty </xsl:when> <xsl:otherwise> EMPTY </xsl:otherwise> </xsl:choose> Value:<xsl:value-of select="string(//item[@id=$tagId])"/>: </xsl:template>