Re:

Subject: Re:
From: Keith Visco <kvisco@xxxxxxxxxxxx>
Date: Wed, 03 Nov 1999 15:08:31 -0800
Paul,

Testing the value of an Element will only test for text descendants, not
element content.

You'll probably want to try something like

<xsl:if test="(count(Description/*)+count(Description/text()))>0">
...
</xsl:if>

--Keith

Paul Johnson wrote:

> Hello All,
>
> How can I test to see if a element is NOT null?
> I have tried the following:
>
> <xsl:if test="Discription[.!='']"><img src="images/desc.jpg"/></xsl:if>
>
> <xsl:if test="Discription != ''><img src="images/desc.jpg"/></xsl:if>
>
> <xsl:if test="Discription $ne$ ''"<img src="images/desc.jpg"/></xsl:if>
>
> I am not sure where to look now.
>
> Thanks,
>
> Paul R. Johnson
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread