Help. Using a variable to get the position of a node.

D

Donal

I have the following:

<xsl:variable name="position"><xsl:value-of
select="position()"/></xsl:variable>
<xsl:attribute name='style'><xsl:value-of
select="//ExportData/Definition/Column[$position]/Style"/></xsl:attribute>

However, //ExportData/Definition/Column[$position]/Style always seem
to return //ExportData/Definition/Column[1]/Style.

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,135
Messages
2,570,789
Members
47,345
Latest member
Datawizard0103

Latest Threads

Top