[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to sort a $variable and store that into anothe
Jean-Philippe Martin wrote:
My need is : - extract a list of values - make it unique - make it sorted - put it on many columns in a html table Your first post said you had troubles to sort nodes into a variable, the problem being "I get is a single node containing all the values sorted concatenated in a single string". Can you show us the code that causes that problem? What you did show in your second post did not even attempt to sort into a variable and output that sorted variable. The only problem I see above is that the variable unsortedList could contain all kind of nodes (e.g. element nodes, text nodes, comment nodes) and I am not sure sorting such an incoherent node-set makes much sense. And as I pointed out in my initial post, if you sort a node-set into a variable in XSLT 1.0 then you have a result tree fragment. If you want to apply XPath on a result tree fragment then you first need to apply an extension function like exsl:node-set to convert the result tree fragment into a node-set. So that could also be a problem, but you have not shown us your attempt to sort into a variable and to use that variable later so I am just guessing. -- Martin Honnen http://JavaScript.FAQTs.com/
|
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
|