This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can XSLT help with overlapping structures (was: XML slice design)


  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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]