[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Confused by xsl:for-each
<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: Confused by xsl:for-each >From: "Robert Soesemann" <rsoesemann@xxxxxxxxxxx> >Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx >To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> >Subject: RE: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|