Return to Snippet

Revision: 24397
at March 1, 2010 08:24 by AlexLocust


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

Initial URL

                                

Initial Description

                                

Initial Title
Skip empty XML nodes v.2

Initial Tags
xml

Initial Language
XSLT