Hi,
in my example file i was using <xsl:template match="/doc/foo">.
In my real file i am using <xsl:for-each select="tcg-te:Protocolbody/tcg-te:Test_report_list/tcg-te:Test_report"> and the position is not multiplicated with two. Don't know where the problem was, but now i doesn't occur.
Thanks for the really good help,
Johannes.
----- Original Message ----- From: "Andreas L. Delmelle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 14, 2004 8:05 PM
Subject: RE: Question concerning Xalan.
<snip />-----Original Message----- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] > -----Original Message----- > From: Johannes Franz [mailto:[EMAIL PROTECTED]> One last problem still remains. The position seems to be > multiplicated with two. > I mean the name of the files is foo2.html foo4.html and so on. Thats > not very terrible, but perhaps there is a way to devide > position by 2. :) > ... Any reason why the processed node's position in the node-set is always double of what you would expect?
Come to think of it: are you maybe using
<xsl:apply-templates select="node()" />
?
This would also make position take into account possible text nodes in between the '/doc/foo' elements.
In that case, better use: <xsl:apply-templates select="*" />
Or, a maybe even a little more efficient: <xsl:apply-templates select="/doc/foo"
Cheers,
Andreas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]