This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Simple count question
- To: xsl-list at mulberrytech dot com
- Subject: Re: Simple count question
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 28 Feb 2000 23:07:10 GMT
- References: <002f01bf8229$b64af920$5461a8c0@tektools.com>
- Reply-To: xsl-list at mulberrytech dot com
> <xsl:value-of select="count(software/descendent::*[ name() != ' ' ])">
that selects all descendents of the software element with element type
name notthe space character ' ' , which is all of them as that is not a
legal XML name.
> Give a count of software without any child element for the "software"
> node ? In the above example, the answer should be 2.
>
I think you wanted
count(software[not(*)])
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list