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

Re: XSLT Question - Split large XML into multiple smal

Subject: Re: XSLT Question - Split large XML into multiple smaller XML
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Wed, 5 Dec 2001 17:46:40 -0500
xslt split
Seems like a job for a SAX handler.  You could split it into the various
level 1 elements, or you could pull out each level 2 and point to them from
the level 1 elements.  Trying to use xslt would probably be hopeless since
it would have to build its own DOM first - but not from 50 MB, I'm sure
that's to big to be practical.

Cheers,

Tom P

[<Paul_Eberle@xxxxxxxxxxxxxxx>]

> I am an XSL/XSLT/XPath trying to break down very large well-formed XML
> files (as String messages) into smaller well-formed XML Strings using
> XSL/XSLT.
>
> I am currently experimenting with Xalan - Java 2 from apache, but am
> having a difficult time finding examples that transform XML->XML and split
> it up.
>
> Could someone help point me in the right direction?
>
> Example: large.xml
>
> <root>
>    <level 1 (one to many)>
>         <some children>
>         <level 2 (one to many)>
>             <some children>
>             <level 3 (one to very many) >
>                 <some children />
>             </level 3>
>             <trailing siblings />
>         </level 2>
>         <trailing siblings />
>     </level 1>
>     <trailing siblings />
> </root>
>
>
> Level 3 is a unit of work.  Since JDOM is used to process the unit of
> work, we need to limit the size.  A new requirement has asked for 50MB
> batch messages containing..
>
> several <level 1>
> which may contain several <level 2>
> which is likely to contain many, many <level3>
>
> I would like to parameterize either by string size and/or unit of work
> count as to how the original XML is split.
>



 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.