[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Count all the elements of a column

Subject: Re: Count all the elements of a column
From: "Ritu" <rkama@xxxxxxxxxxx>
Date: Thu, 14 Nov 2002 14:16:50 -0600
count all the f
I think what you want to do here is to sum all the codenet element values
where the sex = F. If I understood correctly, then try this

<xsl:value-of select="sum(agent[sexe='F']/codenet)"/>

Ritu Kama
Work: (630) 734-5947
email: rkama@xxxxxxxxxxx


----- Original Message -----
From: "Yann Verlynde" <yverlynde@xxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, November 14, 2002 11:37 AM
Subject:  Count all the elements of a column


> Hello,
>
> How can i do to count all the elements of a column in a table?
>
> My table is build by a for-each tag.
>
> Thanks in advance
>
> <xsl:variable name="agent-sexe-F" select="agent/sexe[ text() = 'F' ]"/>
>
> <xsl:variable name="somme-agent-sexe-M"
> select="sum($agent-sexe-M/codenet)"/>
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.