Re: [xsl] Joining Multiple XML using XPath API of XALAN

Subject: Re: [xsl] Joining Multiple XML using XPath API of XALAN
From: Joseph Kesselman <keshlam@xxxxxxxxxx>
Date: Tue, 10 Sep 2002 08:57:47 -0400
Just to clarify: The problem is that the problem description is 

>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:

Current Thread