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

Re: Joining Multiple XML using XPath API of XALAN

Subject: Re: Joining Multiple XML using XPath API of XALAN
From: Dennis <maillistboxes@xxxxxxxxx>
Date: Wed, 11 Sep 2002 04:02:33 -0700 (PDT)
xalan multiple sources
Hi All,

Thanks for all thoughts.
The discussion now boiled down to more specific
requirements.
I need to merge multiple in-memory DOM structures. I
only know a single way to merge the XMLs i.e. load the
xml file using document function and output it's value
in the appropriate place.

Is there any way to load the in-memory xml document in
XSL just like document function.
Writing a file and loading it using document function
doesn't seem to be a good idea in my case.

This is the reason I thought of using XPath API, where
I can get any part of the DOM and merge it to another
DOM.

Any suggestions????

Thanks
Dennis


--- Joseph Kesselman <keshlam@xxxxxxxxxx> wrote:
> Just to clarify: The problem is that the problem
> description is 
> incomplete:
> 
> >I have to merge multiple XML that would come from
> >various sources. All the XML coming conform to the
> >same single Schema. The XML coming from various
> > sources will be merged and the merged xml will
> still
> >conform to that schema
> 
> There isn't an API for the concept of "merge" --
> because "merge" isn't 
> well defined. There are generally many ways to merge
> data to produce a new 
> document which will conform to the same schema, but
> the meaning of those 
> documents will differ. 
> 
> To take an HTML example, you can merge two tables
> into one by adding rows, 
> or adding columns, or combining values... sorted on
> any of the above or 
> unsorted, with repeated values kept or eliminated...
> Or maybe you intended 
> to put both tables into the output document as they
> stand, with or without 
> descriptive text assocated with them...
> 
> So you need to specify in detail what you mean by
> "merge". For that, you 
> need to do some programming -- either at a low level
> by hardcoding it, or 
> at a higher level by using a language such as XSLT,
> or in a more 
> specialized transcoding tool.
> 
> ______________________________________
> Joe Kesselman  / IBM Research
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute

 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.