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

RE: Adding together XML files with identical trees

Subject: RE: Adding together XML files with identical trees
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Sep 2000 13:12:08 +0200 (MET DST)
adding 2 xml files together
> I'm sure Oliver Becker will point you in this direction
> http://www.informatik.hu-berlin.de/~obecker/XSLT/#merge
> but just in case you're in the states and he's asleep
> there you go

Now I'm wide awake again :-)

It seems there could be a little problem.
The input contains

> >		<LOGINFO>
> >			<PERFORMANCE>32ms</PERFORMANCE>
> >		</LOGINFO>

whereas the output should look like

> >		<LOGINFO>
> >			<PERFORMANCE1>32ms</PERFORMANCE1>
> >			<PERFORMANCE2>45ms</PERFORMANCE2>
> >			<PERFORMANCE3>45ms</PERFORMANCE3>
> >		</LOGINFO>

There appear new elements with suffixes 1, 2, ...
My merge tool would probably give
> >		<LOGINFO>
> >			<PERFORMANCE>32ms45ms45ms</PERFORMANCE>
> >		</LOGINFO>
(Haven't tried it).

So it's not the perfectly fitting solution, but it could be a suggestion
to Mike.

Another note: the merge stylesheet merges arbitrary XML documents.
If one knows the XML structure then it could be done much simpler.

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.