xsl-list
[Top] [All Lists]

RE: Quick question

2002-09-26 07:42:38

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[(_at_)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(_at_)travelnow(_dot_)com]
Sent: 26 September 2002 15:10
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>