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

Re: XSLT merging XML documents

Subject: Re: XSLT merging XML documents
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Jul 2000 10:21:21 +0200 (MET DST)
xslt merge xml documents
Tom,

> I thought you already had, i.e. Elements in two documents refer to the same
> item (i.e. equivalent) if they
> 
> a) have the same element name
> b) have the same number and values of attributes
> c) the parents are equivalent (by the same rules)
> 
> NB c) doesn't need to use ancestors because the parents can only be
> equivalent if their parents are etc. etc.

thinking about it I came to the conclusion that it's not that simple.
How would you like to see the following documents merged?

<a>
  <b>First</b>
  <b>Second</b>
</a>

and

<a>
  <b>Third</b>
</a>

My transformation gives
<a>
  <b>FirstThird</b>
  <b>Second</b>
</a>

According to your suggestion, the following would also be ok:
<a>
  <b>First</b>
  <b>SecondThird</b>
</a>

My rules must include
d) if they are at the same position (relative to their parent node)

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 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.