PDA

View Full Version : Is there any way to script the <xsl:sort> element


frontline
07-22-2003, 09:42 AM
Hello
i have xsl file that formats simple xml file and builds html table .
im using the <xsl:sort select="@foo" /> to sort the table by the "foo" attribute
my question is what if i like after the html page already has builded to sort the xml file by "foo1" or by "foo2" (lts say i have attributes by that name)
is there any way to access the <xsl:sort > by js on the client and sort the table with new value in the "select" property?
hope you got my point there
thanks

brothercake
07-22-2003, 08:06 PM
This is a follow-on from http://www.codingforums.com/showthread.php?s=&threadid=23568 Probably best to keep it all in the original thread, I think.

Alex Vincent
07-24-2003, 06:27 PM
XSLT cannot accomplish what you are looking for. It transforms and destroys the original document in the process of creating the new document. After this, the XSLT stylesheet is lost.

Closing thread as a duplicate.