Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Sort xml and output xml >Thread Next - Re: Sort xml and output xml Re: Sort xml and output xmlTo: NULL Date: 12/7/2006 8:05:00 AM Jim Andersen wrote: > My intent was to have my immediate problem solved. > AND to learn something about xslt. > AND to get a piece of code I can re-use in other scenarios, as I will > problably need to sort stuff again. Either solution addresses those. Mine focuses on the specifics of sorting, and trusts that you will learn to think recursively through other examples. The other attempts to show some other aspects of the language as well... which may be useful, or may risk obscuring the key point. Personally, I still think the p.lepin's solution is overcomplicated; the use of a separate mode with its own copy of the identity template is something worth understanding in the long run but I consider it a distraction here. Both are reusable. Which one is more reusable -- or teaches you more about reuse -- is debatable. As I say, there's always a question of just how far to digress when answering a question. One of the nice things about asking on a newsgroup is that you may get multiple solutions, as here, in which case you can pick the one that matches your own needs... or, if you don't yet know your needs, you'll at least be exposed to the fact that multiple valid answers exist. Have fun. -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
