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:
Previous chapter: (
) Next chapter: (
Chapter 2
)
Chapter 1
para 1
Previous chapter: (
Chapter 1
) Next chapter: (
Chapter 3
)
Chapter 2
item 1
item 2
Chapter 2, Section 1
item 3
para 2
Previous chapter: (
Chapter 2
) Next chapter: (
)
Chapter 3
para A