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

XSLT Question - Split large XML into multiple smaller

Subject: XSLT Question - Split large XML into multiple smaller XML
From: Paul_Eberle@xxxxxxxxxxxxxxx
Date: Wed, 5 Dec 2001 15:48:55 -0600
split large xml files
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.

Is this possible?

Thanks for any help.
-Paul 

 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.