Mega Code Archive
Get the context position with position() function
File: Data.xml
the first chapter
the second chapter
the third chapter
the fourth chapter
the fifth chapter
File: Transform.xslt
the context position is
Output:
the context position is
2