This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Simple count question



>    <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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]