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

RE: large xml document and sorting

Subject: RE: large xml document and sorting
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 29 Apr 2002 21:42:46 +0100
sort large xml
An ideal application for a SAX filter. Write a SAX filter to run between the
XML parser and the XSLT processor to get rid of <rest-of-subtree> and its
children. The sort should then be pretty fast, because there will be enough
memory to do it quickly.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Mark Diggory
> Sent: 29 April 2002 21:08
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  large xml document and sorting
>
>
> We've got some documents which are upwards of 10 - 20 Mb that we are
> have speed issue with in terms of transforming them.
>
> 1.) they have about ~800 or so nodes that we need to sort in
> one portion
> of the tree.
> 2.) they have about 60000 nodes of content in another subtree
>
> ie
>
> <example>
> 	<node-to-be-sorted>...</node-to-be-sorted>
> 	<!-- about 800 of these -->
> 	<node-to-be-sorted>...</node-to-be-sorted>
> 	<rest-of-subtree>
> 			<!-- lots of nodes (~60000) -->
> 	</rest-of-subtree>
> </example>
>
> 1.) I could care less about the "rest-of-subtree" portion and
> if I could
> get away without parsing it, the better. Is there a "best
> practice" to
> exclude this portion of the tree?
>
> 2.) Is there a "best practice" to sort the
> "node-to-be-sorted" when they
> are this many as well? I really need to get this as fast as possible.
>
> Thanks,
> -Mark Diggory
>
>
>
>  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-2007 All Rights Reserved.