Is there a text I can use to check if a field is populated and toggle the field's display based on the result?
+1
A:
You can test for the existence of an element this way:
<xsl:if test="/root/parent/node">
Prints if and only if the expression exists
</xsl:if>
If you know the element exists and you're just after whether it has a value or not, use this:
<xsl:if test="string-length(/root/parent/node) > 0">
Prints if the expression has a non-empty value
</xsl:if>
Welbog
2009-06-25 12:10:28
Cheers mate, much appreciated!
toomanyairmiles
2009-06-25 12:48:01
Thanks, this answered a question I had as well.
Josh W.
2009-07-15 18:30:06