File: Data.xml
Chapter 1
para 1
Chapter 2
item 1
item 2
Chapter 2, Section 1
item 3
para 2
Chapter 3
para A
File: Transform.xslt
version="1.0">
Previous chapter: (
) Next chapter: (
)
Output:
Chapter 1
para 1
Chapter 2
item 1
Previous chapter: (
Chapter 1
) Next chapter: (
Chapter 3
)
item 2
Chapter 2, Section 1
item 3
Previous chapter: (
Chapter 1
) Next chapter: (
Chapter 3
)
para 2
Chapter 3
para A