[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: "Hunsberger, Peter" <Peter.Hunsberger@xxxxxxxxxx>
Date: Tue, 28 May 2002 08:24:11 -0500
document merge with database
> > 
> > I believe I can pick up on the missing elements as soon as I've passed
them
> > by. If I have two sorted trees to compare and in one I go from A to C
and in
> > the other I go from A to B then I know I've missed B in the first?
>
>
> But only if you have some specification of the order other than "the
> order in which they appear". By using "A" and "C" above you are implying
> alphabetic order and so its not hard to spot B is missing but in your
> example 
> you said the order of the elements in the two docs could be different 
> so how in that case do I know B is missing rather than just later in the
> order?

The document order from document A is sufficient.  This document is actually
generated from a database using a sort order as specified by various
database elements.  Thinking about this last night I realized that I should
always be able to use the current node as the context node and check if the
next element in document A exists in document B or not and if not, call some
template to generate it.  I'll hopefully be able to have a go at generating
the code this afternoon, but I somehow suspect I'll be posting about this
again...

 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.