Re: [xsl] find out if a element is empty

Subject: Re: [xsl] find out if a element is empty
From: Alexander Johannesen <alex@xxxxxxxxxx>
Date: Tue, 08 Apr 2003 11:28:17 +0200
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


Current Thread