[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Can XSLT help with overlapping structures (was: XML slice des ign)


Subject: RE: Can XSLT help with overlapping structures (was: XML slice des ign)
From: Linda van den Brink <lvdbrink@xxxxxxx>
Date: Mon, 15 May 2000 16:23:33 +0200

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



Current Thread