This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Paging using XSLT
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Paging using XSLT
- From: "Xu, Xiaocun" <XXu at CommercialWare dot com>
- Date: Thu, 2 Nov 2000 17:25:39 -0400 (EST)
- Reply-To: xsl-list at mulberrytech dot com
Hi,
The solution suggested here seems to be solution to my problem
"Display multiple pages": I have a XML document that could have over 1,000
database records, and I would like to split them up to multiple pages for
display purposes, with Prev and Next button to advance between the pages.
The solution you suggested is two-steps: incoming XML already
separated by pages, XSLT translates them one by one. I was hoping to do all
these in XSLT so that parameters such as maxLinesPerPage can be controlled
within the XSLT. With the two step process, such customization needs to be
done in the XML generation process which is not as flexible. Is there no
way to do something like this all within XSLT?
Thanks,
Xiaocun Xu
xxu@commercialware.com
> -----Original Message-----
> From: Francis Norton [mailto:francis@redrice.com]
> Sent: Wednesday, November 01, 2000 5:19 PM
> To: xsl-list@mulberrytech.com
> Subject: Re: Paging using XSLT
>
>
> robert@elastica.com 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
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list