[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Client-side sorting without Microsoft extensions?

  • To: xml-dev@l...
  • Subject: Client-side sorting without Microsoft extensions?
  • From: Ken Sall <kensall@c...>
  • Date: Mon, 02 Sep 2002 15:32:36 -0400

client side sorting
Does anyone know a cross-browser solution for XSLT access to the DOM to sort
XML data in-place that works for *both* Netscape 6+ and IE 5.5+?

In other words, my stylesheet renders XML in tabular form (as HTML) and I'm
using Microsoft-specific XML DOM and XSLT features to enable client-side
sorting of data merely by clicking on the column heading, based on a
technique illustrated in an XML-J article [1]. The core of the
Microsoft-specific code follows:

    oldXMLDOM = document.all.participantsXML.XMLDocument;  // data
    oldXSLDOM = document.all.tableXSL.XMLDocument;   // stylesheet
    newHTML = oldXMLDOM.transformNode(oldXSLDOM);
    document.all.tableBody.innerHTML = newHTML;
....
   XSLIsland = document.all.tableXSL.XMLDocument;
   var objSelect =
     XSLIsland.selectSingleNode("//xsl:sort/@select");

Thanks in advance.

[1] XML Journal, Volume 3, Issue 5; http://www.sys-con.com/xml/

- Ken Sall                            ken@s... or kensall@c...
- XML Consultant/Author
- http://kensall.com or http://mywebpages.comcast.net/kensall/
- XML Family of Specifications: A Practical Guide (just published)
- http://WDVL.Internet.com/Authoring/Languages/XML/XMLFamily/





PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.