[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: sort elements in external document
As an alternative view, you often get simpler and more maintainable stylesheets by doing the processing in stages using multiple stylesheets. In particular, I often find it useful to have a phase that augments the original document with extra information, and then a processing phase. To apply that principle here, you would have one stylesheet that augments the original file with dates to produce <list> <file date="...">file1.xml</file> <file date="...">file2.xml</file> ... <file date="...">file100.xml</file> <list> and then you would use a second stylesheet to do the sorting (and strip out the extra "date" attributes as preferred). Now, for this particular example, the "all in one stylesheet" approach isn't too bad, but I would often use two stylesheets anyway, just for ease of debugging and maintenance. Cheers, Tony. On Tue, 15 May 2007 13:41:55 +0100, Vaduvoiu Tiberiu <vaduvoiutibi@xxxxxxxxx> wrote: I want to sort an xml document by data from an external document. Let me see if I can explain this: I have list.xml:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|