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

Re: complicated sort problem

Subject: Re: complicated sort problem
From: Vaduvoiu Tiberiu <vaduvoiutibi@xxxxxxxxx>
Date: Wed, 16 May 2007 05:56:58 -0700 (PDT)
Re:  complicated sort problem
fileX.xml:

<document>
    <date>20071805101800</date>(yyyymmddhhmmss)
   <url>folderX/foldery/</url>
    <other tags that aren't to interest>
</document>

I know the shorter solution would be to have a date attribute to the <list> xml file like <file date="2007...">file1.xml</file> 

But it's a little more complicated than that, I can't really put the data as an attribute so I need to do it with the xml-s structured like that.
10x. Cheers


----- Original Message ----
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Sent: Wednesday, May 16, 2007 2:42:58 PM
Subject: Re:  complicated sort problem


On 5/16/07, Vaduvoiu Tiberiu <vaduvoiutibi@xxxxxxxxx> wrote:
> Similar problem with the one I had yesterday:
> I need to sort the following xml:
>
> <list>
>    <file>file1.xml</file>
>    <file>file2.xml</file>
> ......
>    <file>file100.xml</file>
> </list>
>
> each of these files have some tags (2 of which are:)
>    <date>20071805101800</date>(yyyymmddhhmmss)
>    <url>folderX/foldery/</url>
>
> So I need to sort the first xml by the date (which is in each fileX.xml). Is that possible? .


The short answer is: Yes.

A more specific solution with code could be produced, once the structure of the

       file<N>.xml

files is known.

-- 
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play


       
____________________________________________________________________________________Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

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-2011 All Rights Reserved.