[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] getting position of tag


Subject: [xsl] getting position of tag
From: Dusan Zatkovsky <zatkovsky@xxxxxxxxxxxx>
Date: Wed, 15 Sep 2004 15:55:15 +0200

Hi.

I have this problem:

XML:
<columns>
	<column>
		<source>A</source>
	</column>
	<column>
		<source>B</source>
	</column>
</xolumns>

I want to get position() of tag column, where source='B'.

I have tried
xsl:value-of select="/columns/column[source='B']/position()"
but it is bad.

Anyone help me?

Thanks.


-- 

Dusan Zatkovsky


Current Thread