Return to Snippet

Revision: 24396
at March 1, 2010 08:19 by AlexLocust


Initial Code
<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>

Initial URL


Initial Description


Initial Title
Skip empty XML nodes

Initial Tags
xml

Initial Language
XSLT