Click to See Complete Forum and Search --> : populating drop down


aleks1429
12-20-2006, 05:05 PM
Hi,

I am reading an Xml document and grabbing a node name to populate a drop down and that works fine. However, now I need to sort my drop down to present a sorted drop down to a user. How would i go about do this?

I tried XSL and I able to sort the data, however, I don't know how to drop this sorted string into a drop down. Can someone give me advice?

thanks

scottrickman
12-20-2006, 05:16 PM
Try to read the xml, load the xsl, transform the xml which should return more xml then bind the drop-down to the new xml which has been sorted by xsl

aleks1429
12-20-2006, 06:49 PM
i have done just that, however, the problem is that the result from the transform is just one big string rather than a sorted XML page...how can i get the same XML back but with sorted info?

russell
12-20-2006, 07:15 PM
u need to use xpath sort operator
http://p2p.wrox.com/topic.asp?TOPIC_ID=45262

http://www.developer.com/xml/article.php/1560361

http://www.google.com/search?hl=en&q=xpath+sort