Subject: Simple count question From: "Pady Srinivasan" <pady@xxxxxxxxxxxxx> Date: Mon, 28 Feb 2000 14:23:44 -0600 |
I have a XMl dump as follows:
<root>
<pc>
<software
type="browser">
<name>Netscape</name>
</software>
<software
name="word">
</software>
<software
name="spreadsheet">
</software>
</pc>
</root>
Question: For each PC, Give a count of software without any
child element for the "software" node ? In the above example, the answer
should be 2.
I tried this but didnt work:
<xsl:for-each select="/root/pc">
<xsl:value-of
select="count(software/descendent::*[ name() != ' ' ])">
</xsl:for-each>
Thanks
Pady
|
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: translate function & hex data, Pawson, David | Thread | Re: Simple count question, David Carlisle |
translate function & hex data, Paul Bell | Date | RE: Trying to learn XSL, Respess, Christe |
Month |