xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] SAXON: Generate 10 elements per page


Subject: RE: [xsl] SAXON: Generate 10 elements per page
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 12 Feb 2004 13:40:40 -0000

To process a million rows you are going to need to be careful with
memory.

But I think the standard technique will give you linear performance:

for-each row[position() mod 10 = 1]
  <page>
     copy-of select=".|following-sibling::row[position()<=10]
  </page>
/for-each

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> SHEIKH Sajjad
> Sent: 12 February 2004 12:35
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] SAXON: Generate 10 elements per page
> 
> 
> Hi all,
> 
> 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>
> 
>  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
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor