This XSLT takes an XHTML document formatted with the conventions described below and splits it in several pages; it requires the a processor like saxon to work.
Conventions
The XSLT divides the document based on parts marked up as <div class='part'>; the title of the said part is expected in a <h2> level heading.
Features
the filenames for each of the pages are computed either from the id put in the <h2> heading or as 'part-number.html', where number is the position of the part in the initial document
a navigation bar is added at the top and the bottom of each of the pages to go to the previous/next page
internal links are adapted to the new division
headings levels are adapted to the new division
Feedback, requests for enhancement and bug reports are welcomed.