[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] dynamic sort using attributes
Folks,
I've tried searching the lists, but could not find a definitive / clear answer to this question, so here it goes: How can I sort an xml list based on attributes dynamically ( I do not know which attribute before hand)? For instance, I have the following xml: <reminders> <reminder category="Test" nm="XXX" description="foobar"/> <reminder category="Test12" nm="yyy" description="barfoo"/> </reminders>
So, assume that i have an xsl:param with the value of the attribute that I would like the results to be sorted by. I know that this can be accomplished if I change the xml structure and make the attributes child elements, but that is not an option for me. Is there any work around that can accomplish this without changing the XSL file (before complie time)? Also, I'm targetting user agents such as IE / Firefox that support XSL 1.0. Thanks in advance
|
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
|