This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Confused with ranges of variables...
- To: Kay Michael <Michael dot Kay at icl dot com>
- Subject: Re: Confused with ranges of variables...
- From: Peter Aherne <ahernep at piercom dot ie>
- Date: Fri, 28 Jul 2000 10:08:07 +0100
- Cc: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- References: <93CB64052F94D211BC5D0010A800133104B4DA13@wwmess3.bra01.icl.co.uk>
- Reply-To: xsl-list at mulberrytech dot com
Sorry, what I actually meant was that I wanted to check a range from 021-00050 to 021-00060 or something like that. If I do a <csl:if test="'021-00050' = $SomeVar"/> If returns true if $SomeVar is the same (Duh!) but if I do a <xsl:for-each select="//ROW[PartCode = '021-00050']"> I dont get any return even if such an element exists. I presume it is to do with the hyphenation and numeric/alpha numeric comparasons but I have no idea whats going on.
Regards,
On Thu, 27 Jul 2000, Kay Michael wrote:
> By this do you mean that the range is 123 to 456789 inclusive?
>
> if so, the test is
> <xsl:if test="a >= substring-before($range, '-') and a <=
> substring-after($range, '-')"/>
>
> Mike Kay
>
> > -----Original Message-----
> > From: Peter Aherne [SMTP:ahernep@piercom.ie]
> > Sent: Thursday, July 27, 2000 1:57 PM
> > To: xsl-list@mulberrytech.com
> > Subject: Confused with ranges of variables...
> >
> > I'm trying to do a range check with a variable. The problem is that the
> > variable is of the from 123-456789. If I do a = 123-456789 it does not
> > return anything despite the fact that such a value exists. I presume this
> > problem is due to the variable type. I want to do a numeric comparason on
> > this but have no idea how.
> >
> > Regards,
> >
> > --
> > Peter Aherne : IT Solutions Developer
> > Mobile Number : 087-2246834
> > E-Mail address : peter@linux.ie
> > Web address : http://www.csn.ul.ie/~peter
> >
> >
> > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
Peter Aherne : IT Solutions Developer
Mobile Number : 087-2246834
E-Mail address : peter@linux.ie
Web address : http://www.csn.ul.ie/~peter
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list