Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Sort xml and output xml

From: Joe Kesselman <keshlam-nospam@-------.--->
To: 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent