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">
(
/
)
Output:
Chapter A (1/4) Chapter B (2/4) Chapter C (3/4) Chapter D (4/4)