I\'m trying to write an XSLT that organizes an HTML file into different section levels depending on the header level. Here is my input:
A more general grouping in XSLT 1.0
Output:
HEADER 1 CONTENT
Level 1 para
Level 1 para
Level 1 para
Level 1 para
Header 2 CONTENT
Level 2 para
Level 2 para
Level 2 para
Level 2 para
And with a more complex input sample like:
1
1
1.1
2
1.1.1
3
1.2
4
2
5
2.1
6
Output:
1
1
1.1
2
1.1.1
3
1.2
4
2
5
2.1
6