sorting
-
Hey Guys, I am using ASP to load some data from a xml file via xsl. Now i need to sort this data, i know i could use the xsl:sort element but i need a dynamic one, which the user can change. So the user will have the possibilty to sort the data in different ways. I already tried to pass a param to xsl and put it to but it didnt worked. Isnt it possible to pass a sort statement in selectnodes ? Is there any such function ? Any suggestions ?? thanks Sonu da sonu :cool:
-
Hey Guys, I am using ASP to load some data from a xml file via xsl. Now i need to sort this data, i know i could use the xsl:sort element but i need a dynamic one, which the user can change. So the user will have the possibilty to sort the data in different ways. I already tried to pass a param to xsl and put it to but it didnt worked. Isnt it possible to pass a sort statement in selectnodes ? Is there any such function ? Any suggestions ?? thanks Sonu da sonu :cool:
If you are using DOM then try the following. Based on the user's selections create an XSL with the appropriate sort and then apply it to your XML using the DOMDoc object.
-
If you are using DOM then try the following. Based on the user's selections create an XSL with the appropriate sort and then apply it to your XML using the DOMDoc object.
I am using DOM, but i am not very familiar with that. Do you have any example code which might help me ? da sonu :cool:
-
Hey Guys, I am using ASP to load some data from a xml file via xsl. Now i need to sort this data, i know i could use the xsl:sort element but i need a dynamic one, which the user can change. So the user will have the possibilty to sort the data in different ways. I already tried to pass a param to xsl and put it to but it didnt worked. Isnt it possible to pass a sort statement in selectnodes ? Is there any such function ? Any suggestions ?? thanks Sonu da sonu :cool: