RE: Can XSLT help with overlapping structures (was: XML slic
David Carlisle wrote: > > But in your example you only needed some simple duplication as you > assume the page break happens at a point that is at the top level > of a div, and between paragraphs. In general you would have to > close (and re-open) an arbitrary number of open elements inorder > to close the page element and then > > </list> > </page><!-- End of first page --> > > In particular what would you have done if the page had ended in the > middle of that list? I was thinking along the lines of closing the page element each time an overlap problem threatens, and opening a new one with the same page nr. But you're right, it becomes very very inelegant and wouldn't in the end really capture the page break structure at all. It would look something like this: </page><!-- page end tag goes here because the subsequent list overlaps two pages --> <list> <item><page nr="1">...</page></item><!-- new page element still indicating page 1 --> <item><page nr="2">...</page></item><!-- new page element indicating page 2 --> </list> So it's back to empty elements for indicating page breaks, and having problems using those as hooks for outputting separate pages using XSLT... Linda XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format