> -----Original Message----- > From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] > > -----Original Message----- > > From: Johannes Franz [mailto:[EMAIL PROTECTED] <snip /> > > 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]