Subject: RE: [xsl] How to count attributes? From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Mon, 25 Nov 2002 11:07:24 -0000 |
count(element/@atrr) Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Sorin Marti > Sent: 25 November 2002 10:23 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] How to count attributes? > > > Hi all, > > I'd like to count the number of one attribute. How can I do that? > > example: > > <element atrr="bla">...</element> > <element atrr="blu">...</element> > <element atrr="ble">...</element> > <element atrr="bli">...</element> > <element atrr="blo">...</element> > > The result should be: 5 (because the attribute attr exists 5 times) > > Thanx for help > mas > > > 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] How to count attributes?, Sorin Marti | Thread | RE: [xsl] How to count attributes?, TSchutzerWeissmann |
AW: [xsl] numbers and XPath, Delaney Robin | Date | [xsl] Indifferenct behavoiur For XS, Hiren Shah |
Month |