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

RE: SAXON: Generate 10 elements per page

Subject: RE: SAXON: Generate 10 elements per page
From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx>
Date: Thu, 12 Feb 2004 14:17:35 +0100
html rows per page
Lets limit the rows to 100 than 1 million.  It will generate 10 pages.
What will be the best way to generate html pages using saxon?

-----Original Message-----
From: Andrew Welch [mailto:AWelch@xxxxxxxxxxxxxxx] 
Sent: 12 February 2004 14:06
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  SAXON: Generate 10 elements per page



> I have the following xml document with 1 million rows.
> I want to generate html pages using SAXON with 10 rows on each page.
> 
> Any suggestion?
> /s
> 
> <import>
>  <Row>
>   <Field1>Match1</Field1>
>   <Field2>2004-10-01</Field2>
>   <Field3>Team A</Field3>
>   <Field4>Team B</Field4>
>  </Row>
> </import>

Well you could use position() mod 10=1 to get every tenth row, and then
apply-templates to each of the following 9 siblings BUT......

...with 1 million rows you will probably be waiting a while for the
document to load into memory, so you would be better of writing a sax
filter and processing only 100 rows at a time (and then rebuilding the
result), or using something like STX which can transform the xml as its
read in.

cheers
andrew

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


______________________________________________________________
This message has been scanned for all viruses by BTnet VirusScreen. The
service is delivered in partnership with MessageLabs.

This service does not scan any password protected or encrypted
attachments.  

If you are interested in finding out more about the service, please
visit our website at
http://www.btignite.com/internetservices/btnet/products_virusscreen.htm
==============================================================

 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.