This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Joining Multiple XML using XPath API of XALAN
- From: Dennis <maillistboxes at yahoo dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 11 Sep 2002 04:02:33 -0700 (PDT)
- Subject: Re: [xsl] Joining Multiple XML using XPath API of XALAN
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@us.ibm.com> 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