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

RE: Quick question

Subject: RE: Quick question
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Thu, 26 Sep 2002 15:42:38 +0100
RE:  Quick question
> 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. 

Usually its best to supply at least some source xml, the relevant
snippet of your stylesheet and where your previous attempts have
failed... 

...without much to go on, I would guess that you might want:

<xsl:apply-templates select="hotel[@rating = $rating]">

where $rating is the param containing the values 1-5 in increments of of
.5

cheers
andrew
 

> -----Original Message-----
> From: Mac Rost [mailto:mrost@xxxxxxxxxxxxx]
> Sent: 26 September 2002 15:10
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Quick question
> 
> 
> 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. 
> Thanks!
> Mac 
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
 

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