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: Count tags with parent's attributes with nested named templates



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

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