Xalan count() trouble 2006-09-20 - By Robert Houben
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:darkman_spam@(protected)] Sent: Wednesday, September 20, 2006 9:13 AM To: xalan-j-users@(protected) 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
|
|