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

Fwd: Merging XML files

Subject: Fwd: Merging XML files
From: "Rodrigo Segnini" <rsegnini@xxxxxxxxx>
Date: Fri, 10 Nov 2006 15:47:58 +0900
rodrigo segnini
Hi, I would like to merge the following two xml files. However, just
looking for diffs between the two files, perfectly equivalent nodes in
both files which are spelled or ordered differently end up being
duplicated in the output.
I am new into xsl programming and unfortunately, the examples I found
on the web would not work for me. How can I accomplish this task from
the command line using, say, Saxon?

Thanks a lot!

Rodrigo

----------------------FILE 1-----------------------

<?xml version="1.0" encoding="ISO-8859-1" ?>
<annotation xml_tb_version="3.1">
 <head>
   <specification src="fileName">
   </specification>
 </head>
 <body>
   <track name="trackName" type="primary">
     <el index="0" start="0.04" end="6">
       <attribute name="AA">-0.78691</attribute>
       <attribute name="BB">activ</attribute>
       <attribute name="CC">0.5374</attribute>
       <attribute name="DD">0.7794</attribute>
       <attribute name="EE">0.08231</attribute>
       <attribute name="FF">0.9171</attribute>
     </el>
   </track>
 </body>
</annotation>

----------------------FILE 2-----------------------

<?xml version="1.0" encoding="ISO-8859-1"?>
<annotation>
 <head>
   <specification src=" fileName" />
 </head>
 <body>
   <track name="anotherTrackName" type="primary">
     <el index="0" start=" 7.24" end="8.52">
       <attribute name="type">preparation</attribute>
     </el>
   </track>
   <track name="trackName" type="primary">
     <el index="0" start="0.04" end="6">
       <attribute name="EE">0.08231</attribute>
       <attribute name="AA">- 0.78691</attribute>
       <attribute name="FF">0.9171</attribute>
       <attribute name="CC">0.5374</attribute>
       <attribute name="DD">0.7794 </attribute>
       <attribute name="BB">activ</attribute>
     </el>
   </track>
 </body>
</annotation>

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.