Oleg Konovalov wrote:
I am new to XSLT,

XSLT questions are best asked on the Mulberry XSL list: http://www.mulberrytech.com/xsl/xsl-list/


1)  Does it make sense to do in the for-each loop or it will
require a
recursion ?

Neither, I'd say. An XSLT for-each ist *not* a loop, at least not in the same sense as in C or Java.

You should probably select the elements in question and then
count the preceeding nodes to get the position, roughly like
 <value-of select="count(mystruct/myarray1/myvar/var2
  [.=following-sibling::var2[1]]/preceeding-sibling::var2)>

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to