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

Joining Multiple XML using XPath API of XALAN

Subject: Joining Multiple XML using XPath API of XALAN
From: Joseph Kesselman <keshlam@xxxxxxxxxx>
Date: Mon, 9 Sep 2002 11:13:30 -0400
xpath preceeding
>What are your particular requirements?  Using XSLT for this sort of thing 
is >really a pretty good idea... 

That would be my own recommendation; write an XSLT stylesheet which uses 
the document() function to access the documents to be merged (perhaps 
getting the URIs from a top-level document, if they might change) and 
appropriately recombines the data from those. 

If you're only using the XPath API, you'll have to hand-code the second 
half of that problem. In my experience, the inefficiencies are actually in 
the repeated XPath lookups (and in the possibility that the XPath might 
reference ancestor/preceeding nodes) more than in the generation side of 
things, so I _think_ you'll find that coding your own generator isn't as 
much faster as you might expect.

But it'd certainly be interesting to try both approaches and compare the 
results...

______________________________________
Joe Kesselman  / IBM Research

 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.