RE: [xsl] Confused by xsl:for-each

Subject: RE: [xsl] Confused by xsl:for-each
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Thu, 25 Nov 2004 13:40:37 +0000
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