Altova Mailing List Archives


Re: Paging using XSLT

From: Francis Norton <francis@----------->
To:
Date: 11/1/2000 2:19:00 PM
robert@xxxxxxxxxxxx wrote:
> 
> Wouldn't it be easier to simply paginate the XML before it gets to the
> translator? ie. throw windows of XML data at the translator and translate
> for each page?
> 
I've had good results from a two step process, with variable length
items.

Step 1 is mark up the printable elements by simply adding newPage
(boolean), pageNumber and LineNumber attributes to the printable
elements, using a recursive template with page and line parameters,
which knows how to size the elements.

Step 2 is to merge the data into a format stylesheet, which then becomes
fairly simple - match a page template for-each element where newPage =
true(), then for-each element with that pageNumber, apply-templates in
layout mode to find a item template which prints and positions the
element correctly.

Hope this helps -

Francis.
-- 
Francis Norton.

why not?




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.