Fading Coder

An Old Coder’s Final Dance

Testing for Empty, Blank, and Missing Values in XSLT

In XPath/XSLT there is no concept of null. You check whether nodes exist and whether their string value is empty or non-empty. The following patterns cover common cases when deciding whether to output a value or a fallback. Basic boolean tests with xsl:if A node-set is true if at least one node exis...