Re: Paging using XSLT

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

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 Norton.

why not?

 XSL-List info and archive:

Current Thread