My task involves creating an XSL script to analyze various XML files that share a similar structure. The aim is to parse these XMLs and transform them into HTML pages. For longer XML documents, I want the resulting HTML page to be paginated (meaning the parsed HTML content should be displayed in separate div
elements, with each representing a different page). The text should transition to the next div
if the current one becomes full or if a block-level element is too large to fit on the current page.
The challenge lies in not knowing exactly when a page break will occur due to the dynamic nature of the output, although I am aware of the dimensions of each page's div
. Furthermore, it is crucial that I find a solution that does not rely on Javascript for performance reasons.
I explored the option of using CSS regions, but given their poor browser support, I am seeking suggestions for alternate solutions or guidance on how to proceed. Can anyone provide assistance in this matter?