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

RE: Quick question

Subject: RE: Quick question
From: "James Fuller" <james.fuller@xxxxxxxxxx>
Date: Thu, 26 Sep 2002 15:29:16 +0100
js switch
>
> Hello all!
>
> A quick question... for example if say main.html has a "select rating"
> with values from 1-5 that increments by .5, i would like to take that
> value in an xsl document and depending upon the rating that is in the
> result set display only the hotels that have that rating.

a) you will need to use <xsl:param/> to get the variable inside the xslt
( no JS style control ...though you could use xslt to autogenerate the
javascript )

b)you would then use <xsl:choose/> to to a case style switch to do something
based on a value ( or use a xsl:if, or a key )

c) so I see an xml /xslt pair that calls itself; you could call the file by
having a onChange the select control to reload stylesheet of course you will
need to know how your particular XSLT processor takes in parameters

d) ther are a few relevent tutorials at www.topxml.com and
www.bayes.co.uk/xml ( if using IE )

e) consider your first free question used up, because this is something you
should read up about on your own ( get a book or goto XSLT FAQ )

gl, jim fuller


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Quick question
    • Mac Rost - Thu, 26 Sep 2002 10:08:05 -0400 (EDT)
      • James Fuller - Thu, 26 Sep 2002 10:26:25 -0400 (EDT) <=
      • David Carlisle - Thu, 26 Sep 2002 10:28:43 -0400 (EDT)
      • <Possible follow-ups>
      • Andrew Welch - Thu, 26 Sep 2002 10:40:14 -0400 (EDT)

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
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.