[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: "Xu, Xiaocun" <XXu@xxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Nov 2000 17:25:39 -0400 (EST)
xalan paging
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@xxxxxxxxxxxxxxxxxx


> -----Original Message-----
> From: Francis Norton [mailto:francis@xxxxxxxxxxx]
> Sent: Wednesday, November 01, 2000 5:19 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: Paging using XSLT
> 
> 
> 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
> 





 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.