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

Re: Breaking up a large XML document into several smal

Subject: Re: Breaking up a large XML document into several smaller ones
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Fri, 11 Jan 2008 08:59:57 -0600
Re:  Breaking up a large XML document into several smal
Glen Mazza wrote:
Hello,

I searched the XSLT FAQ and could not find an answer to this.  If only
for proof-of-concept (we may find better solutions not needing this),
I am interested in breaking up a very large XML document into multiple
smaller ones, and was wondering if XSLT would be a good solution for
this.  For example, if I have the following:


Can this be done via XSLT, or would a SAX-based solution be more
appropriate, or?

It can, using XSLT 2's result-document instruction (this requires a proprietary extension in XSLT 1).


The main issue would be the size of the input documents--XSLT processing is usually more memory constrained than SAX processing.

Also, a SAX processor would probably be more efficient if processing speed is a concern.

Otherwise, with XSLT 2 this is just a generic identity transforms augmented with templates for the elements that should result in new documents and, probably, a function for constructing result filenames.

Cheers,

Eliot
--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com

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.