[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Paging using XSLT

Subject: Re: Paging using XSLT
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Wed, 1 Nov 2000 18:19:06 -0400 (EST)
francis paging
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.