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

Merge 2 files and sort output

Subject: Merge 2 files and sort output
From: "Sascha Slabschi" <sascha.slabschi@xxxxxx>
Date: Wed, 23 Apr 2003 21:08:54 +0200
sort output
Hello!

I have 2 input files - files with articles in different xml structure -
and i want to merge them to one file and sort the output file by the
date values. So that articles of file1 and file2 are mixed.

Here is the structure of file1:
<document>
  <ARTICLE>
    <headline>...</headline>
    <date>21-05/2002</date>
    <text>...</text>
  </ARTICLE>
...
</document>

File2:
<document>
  <article>
    <head>...</head>
    <text>...</text>
    <date>
      <day>10</day>
      <month>05</month>
      <year>2002</year>
    </date>
  </article>
...
</document>

So far i have made a xsl file where i have set a variable to my file2
and then i run through a for-each for file1 and a for-each for file2. So
i get an output file where all articles of file1 are first and then
those of file2 are following. But i want them sorted by the date that
articles of file1 and file2 are mixed. How can i do this?

Thanks,
Sascha Slabschi


 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.