Subject: RE: [xsl] Confused by xsl:for-each From: Andrew Curry <andrew.curry@xxxxxxxxxxxx> Date: Thu, 25 Nov 2004 13:44:06 -0000 |
<xsl:value-of select="count(//a)"/> will do it. -----Original Message----- From: Joe Fawcett [mailto:joefawcett@xxxxxxxxxxx] Sent: 25 November 2004 13:41 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] Confused by xsl:for-each >From: "Robert Soesemann" <rsoesemann@xxxxxxxxxxx> >Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx >To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> >Subject: RE: [xsl] Confused by xsl:for-each >Date: Thu, 25 Nov 2004 14:36:37 +0100 > >Hi, > >Although you say this should work, it does not. The select="//a" seems >not to work. >When I write > ><xsl:value-of select="number(.)"/> I get 1 for one td >BUT <xsl:value-of select="number(//a) I get 0, although there are two ><a..> inside <td>. > >Whats wrong here. > Are you sure there are no namespaces lying about? On a separate note it would be more effficient to select td/a or ./a or descendant::a. -- Joe
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Confused by xsl:for-each, David Carlisle | Thread | [xsl] Gestalt - a new XSLT 2.0 (Bas, Colin Paul Adams |
Re: [xsl] Confused by xsl:for-each, David Carlisle | Date | [xsl] SVG and Presentations at XML , Andrew Watt |
Month |