This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Count tags with parent's attributes with nested named templates
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Count tags with parent's attributes with nested named templates
- From: Ben Robb <Ben at cscape dot com>
- Date: Thu, 1 Jun 2000 10:27:02 +0100
- Reply-To: xsl-list at mulberrytech dot com
> -What I want:
> I would like to count the number of Filename elements
> that have a parent (DonwloadItem) with attribute
> aggreement="yes" and with grand-parent attribute
> (DownloadGroup) with attribute aggreement="yes".
<xsl:value-of
select="count(//DownloadGroup[@agreement='yes']/DownloadItem[@agreement='yes
']/Filename)"/>
should work
Rgs,
Ben
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list