Wednesday, October 21, 2009

Check for null value in XSL File

If you want to check if an element exists, you can do...
<xsl:if test="/A/B/C">...</xsl:if>
That will test if the C element exists.

If you want to check if an element has empty content, you can do...
<xsl:if test="/A/B/C=''">...</xsl:if>

No comments:

Post a Comment