File: Data.xml
Chapter A
Chapter B
Chapter C
Chapter D
File: Transform.xslt
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
(last =
)
Output:
Chapter A(last = 1) Chapter B(last = 1) Chapter C(last = 1) Chapter D(last = 1)