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:
An XSLT 1.0 solution (essentially borrowed by Jenni Tennison):
when this transformation is applied on the following XML document:
1 1 1.1 2 1.1.1 3 1.2 4 2 5 2.1 6
1
2
3
4
5
6
the wanted result is produced: