xsl-list
[Top] [All Lists]

Re: check if a node is empty

2002-10-17 08:35:09
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(_dot_)heinicke(_at_)virbus(_dot_)de
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



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