xsl-list
[Top] [All Lists]

RE: find out if a element is empty

2003-04-08 02:31:50
how can I use xsl:if to find out if a xml element is emty or not.

<xsl:if test="foo/node()">

will return true if the element has content.

And is it the same thing when its emty or its not there?

the above will return false if the element doesn't exist.

Cheers,

Jarno - Skinny Puppy: Worlock (Live)

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



<Prev in Thread] Current Thread [Next in Thread>