This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Confused with ranges of variables...


By this do you mean that the range is 123 to 456789 inclusive?

if so, the test is
<xsl:if test="a &gt;= substring-before($range, '-') and a &lt;=
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]