This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Newbie question about the Less than Operator
- To: xsl-list at mulberrytech dot com
- Subject: RE: Newbie question about the Less than Operator
- From: sara dot mitchell at ps dot ge dot com
- Date: Tue, 28 Mar 2000 12:48:12 -0500
- Reply-To: xsl-list at mulberrytech dot com
You must use the 'escaped' version since < is a start tag
character in XML -- not a less than sign. Use < instead,
such as:
<xsl:if test="($sectioncount < $unitcount2)">
Sara
> -----Original Message-----
> From: Peter Bennett [mailto:peter.bennett@telematica.co.uk]
> Sent: Tuesday, March 28, 2000 8:58 AM
> To: 'XSL-List@mulberrytech.com'
> 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