This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Can XSLT help with overlapping structures (was: XML slice design)
- To: xsl-list at mulberrytech dot com
- Subject: Re: Can XSLT help with overlapping structures (was: XML slice design)
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 15 May 2000 14:53:08 +0100 (BST)
- References: <41F966E6F6E5D311AFE000508B6FC21E11B022@ex-nld-u2.baan.com>
- Reply-To: xsl-list at mulberrytech dot com
No, my example intended to show how to *use* a non-overlapping structure to
represent an overlapping structure. Instead of having empty markers, I have
page elements that nest inside divs and contain other elements (like p,
note, list). Look again:
<!-- end of first page *element* to avoid mallformed nesting because
of overlapping structure -->
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?
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list