Re: [xsl] check if a node is empty

Subject: Re: [xsl] check if a node is empty
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 17 Oct 2002 17:35:09 +0200
The count is inefficient. Why not simply test="*"??

Regards,

Joerg

Vasu Chakkera wrote:
Jeni, David,
would the following statement
<xsl:template match="node">
....
<xsl:when test="count(*)=0"> ( to check for empty child elements)
----
</xsl:template>
be any inefficient ?( was just thinking of other ways to do it besides the standard ones you have suggested )
Thanks


--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de

VIRBUS hat jetzt als erster deutscher Softwarehersteller die Zertifizierung für den 3D Secure-Authentifizierungsstandard "Verified by Visa" erhalten. Details unter http://www.virbus.de/de/press/pressemitteilung/20020828_verified_by_VISA.


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



Current Thread