xsl-list
[Top] [All Lists]

Re: find out if a element is empty

2003-04-08 02:28:17
John Barden wrote:
how can I use xsl:if to find out if a xml element is emty or not.

        <xsl:if test="string( some_node )">
                something
        </xsl:if>

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

By behavior; yes.


Alexander
--
___________________ ______________________ _____________________________
                  |                      |
http://shelter.nu/ | alex at shelter . nu | http://shelter.nu/xsiteable/
___________________|______________________|_____________________________

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



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