[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Newbie question about the Less than Operator


Subject: RE: Newbie question about the Less than Operator
From: sara.mitchell@xxxxxxxxx
Date: Tue, 28 Mar 2000 12:48:12 -0500

You must use the 'escaped' version since < is a start tag
character in XML -- not a less than sign. Use &lt; instead,
such as: 

<xsl:if test="($sectioncount &lt; $unitcount2)">

Sara

> -----Original Message-----
> From: Peter Bennett [mailto:peter.bennett@xxxxxxxxxxxxxxxx]
> Sent: Tuesday, March 28, 2000 8:58 AM
> To: 'XSL-List@xxxxxxxxxxxxxxxx'
> Subject: Newbie question about the Less than Operator
> 
> 
> I am trying to conditionally process using <xsl:if>.
> But I can't find a way to use the less than operator.
> 
> for example, this seems to work,
> 
> <xsl:if test="($sectioncount = $unitcount2)">
> 
> but I want to do
> 
> <xsl:if test="($sectioncount < $unitcount2)">
> 
> (or something like it).
> 
> However, if I try this, XT says "character not allowed."
> 
> I guess that I can't use < in this manner, but I can't find any
> references to alternative operators.
> 
> Thanks for any help
> 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



Current Thread
Keywords
xml