Subject: Re: [xsl] XSLT Question - Split large XML into multiple smaller XML From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Wed, 5 Dec 2001 17:46:40 -0500 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSLT Question - Split large X, Paul_Eberle | Thread | [xsl] transformNode() returning xsl, Jibran Bisharat |
Re: [xsl] building hierarchy from p, John-Mason P. Shacke | Date | Re: [xsl] building hierarchy from p, John-Mason P. Shacke |
Month |