Subject: [xsl] position() returns what? From: Morten Andersen <mortena@xxxxxxxxxx> Date: Fri, 24 Oct 2003 10:37:45 +0200 |
<page> <part name="title-1" text="This is the text"></part> <part name="title-2" text="This is the text of the second part"></part> </page>
<html><body> <a href="editPart.action?number=0">Edit</a> <h2>title-1</h2> This is the text ....
<xsl:template match="part"> <xsl:value-of select="position()"/>
But this outputs equal numbers: 2,4,6,8,10,... I did expect that it would output 0,1,2,3,4,5
Morten Andersen Master of applied mathematics and computer science Amanuensis (in e-learning)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: newline [\n] to <br />, scott | Thread | Re: [xsl] position() returns what?, David Carlisle |
[xsl] Re: newline [\n] to <br />, scott | Date | Re: [xsl] position() returns what?, David Carlisle |
Month |