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

Re: Implementing user input in XSL

  • From: Mike Sharp <msharp@l...>
  • To: EWDProductions@a...
  • Date: Wed, 16 Aug 2000 15:18:59 -0700

xsl parse user input


One way I've done it (on the client side, using the MSXML parser) is to
programmatically go into the XSL DOM, and modify the order-by attribute, then
re-transform the client side table.  This may be brute force, but it works, and
looks very slick--the client table doesn't flicker or refresh--it just re-orders
based on the new sort.  Obviously, this requires your visitors to use IE5 and
up.  However, you can set this up to degrade gracefully, and request another
page from the server if the client is not IE5.  Then, If you're doing it on the
server, and the server environment is MS, then you could use the latest version
of MSXML, which does support the variable and parameter tags.

Good luck,
Mike Sharp




EWDProductions@a... on 08/14/2000 02:34:14 PM

To:   xml-dev@l...
cc:    (bcc: Mike Sharp/Lante)

Subject:  Implementing user input in XSL



For starters, hello.  This is my first post to the forum and I look forward
to getting to know alot of you well in my endeavor to learn this language.

I've already read through a multitude of sites on XML and its supporting
languages and even purchased a book.  What I'm curious about is if it would
be possible for a visitor of my site pull up a "Table" of data.

For example, I have a list of products, prices, reviews, and shipping prices.
 I want to be able to make a drop downlist that has each of the 4 options and
when one is selected, the list is reordered based on that value.  For
example, if they chose reviews, it resorts the list based on the best reviews
to worse.

What I've been able to come up with is a script that will load a different
xsl file to format the xml.  1 file for each option.  Now that's not
including reverse odering.  I'm on 6 files for one page and if I were to
implement searches and reverse orders, I'd be well over twenty.

Is there a way for <.xsl:sort> to process a variable instead of a text or
prescribed element?

Jonathan Hannan






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.