Hello,
I'm trying to check for a missing node and display something.
If the node exists I show the child nodes, but how do I display something if it doesn't exist at all? The following works fine for showing what is there. But if Positions is missing I want to print out something like 'all'.
Thanks for any help.
I'm trying to check for a missing node and display something.
If the node exists I show the child nodes, but how do I display something if it doesn't exist at all? The following works fine for showing what is there. But if Positions is missing I want to print out something like 'all'.
Code:
<xsl:if test="Positions/Position != ''">
<span style="font-weight:bold">
<xsl:for-each select="Positions/Position">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">, </xsl:if>
</xsl:for-each>
</span>
</xsl:if>
Thanks for any help.