Quote:
quote:
I want my HTML to only output images if the element <NavigationGraphic> is present. Else i want to output content of <title>.
How do i test if the element NavigationGraphic is empty?
|
In fact "<NavigationGraphic> is present" is quite different from "NavigationGraphic is empty". So, here are that 2 XPath expressions:
Code:
<xsl:if test="not(NavigationGraphic)">
NavigationGraphic element is absent
</xsl:if>
<xsl:if test="normalize-space(NavigationGraphic) = ''">
NavigationGraphic element's content is empty
</xsl:if>
Regards,
Armen