This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Quick question
- From: "Andrew Welch" <awelch at piper-group dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 26 Sep 2002 15:42:38 +0100
- Subject: RE: [xsl] Quick question
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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@travelnow.com]
> Sent: 26 September 2002 15:10
> To: xsl-list@lists.mulberrytech.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