RE: [xsl] Quick question

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