Re: [xsl] Determine the position of an element relative to its sibling

Subject: Re: [xsl] Determine the position of an element relative to its sibling
From: "Joris Gillis" <roac@xxxxxxxxxx>
Date: Tue, 01 Mar 2005 21:45:54 +0100
Tempore 21:38:21, die 03/01/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Ross, Douglas <DRoss@xxxxxxxxxx>:

Template:
<xsl:template match="A[@class='sort']">
	<A>
		<xsl:attribute name="url">
			base?field=<xsl:value-of
select="ancestor::TABLE/TBODY/TR/TD[<what goes here?>]/@id"/>
		</xsl:attribute>
	</A>
</xsl:template>

<what goes here?>:


count(current()/../preceding-sibling::TD) + 1

--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
"Et ipsa scientia potestas est"  - Francis Bacon , Meditationes sacrae

Current Thread