[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Count tags with parent's attributes with nested named templat es


Subject: RE: Count tags with parent's attributes with nested named templat es
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Thu, 1 Jun 2000 10:27:02 +0100

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



Current Thread