Subject: Re: [xsl] Count all the elements of a column From: "Ritu" <rkama@xxxxxxxxxxx> Date: Thu, 14 Nov 2002 14:16:50 -0600 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Count all the elements of, Ritu | Thread | [xsl] empty textarea broken in IE6,, Zakon, Stuart |
RE: [xsl] With Saxon7.2, can an ali, Timothy Larson | Date | Re: [xsl] Finding list items in XHT, Chris Loschen |
Month |