Mega Code Archive
Last() function is in for-each element The context is therefore all selected chapters
File: Data.xml
Chapter A
Chapter B
Chapter C
Chapter D
File: Transform.xslt
Output:
Chapter A(last = 4) |
Chapter B(last = 4) |
Chapter C(last = 4) |
Chapter D(last = 4) |