Try changing this to: <xsl:template match="*[not(normalize-space())]" />
In my experience, normalize-space() applied to a text node that is either empty or only contains whitespace returns an empty node-set (which evaluates to false). The above says "give me all nodes that are children of the current context that do not have non-whitespace text nodes". -----Original Message----- From: Florent Georges [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 9:13 AM To: xalan-j-users@xml.apache.org Subject: Re: Xalan count() trouble Mukul Gandhi wrote: Hi > <xsl:template match="*[normalize-space() = '']" /> It depends on what the OP means by "empty" elements. I'd say "*[not(node()|@*)]". Regards, --drkm ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com