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

RE: Conditional document merge

Subject: RE: Conditional document merge
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Mon, 27 May 2002 17:16:49 +0100
document merging
Hello Peter,

Peter wrote:
--------------------------------
I've got a more or less classic problem of merging two XML documents.  The
gotcha's in this case are as follows:

1) document A is guaranteed to contain all required nodes, and will include
some that are not needed, but the order of the nodes may be out of order.

2) document B man not contain all required nodes, if it is missing any, some
may be flagged as being mandatory in document A, others may be optional and
will not be included in the output.  Document B will have all nodes in the
required order, any missing nodes can be substituted immediately following
any previous match.  Document B will contain attributes that override any
from document A.
...
---------------------------------
Peter, 

I think the order / structure is the fundamental aspect of your output
document, and it seems wierd that one of your documents (A) has all the
required elements but not necessarily the order while the other (B) has the
order but not necessarily all the elements - if (B) doesn't have all the
elements, how can it have the entire order? 
If (as your example suggests) the order is implicit in the data then it
would make sense to use A as the basis of the merge, sort on this implicit
order, and use B as a kind of element-mask.

But maybe I've missed something? 
Tom Weissmann

 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.