This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: use of '>' and '<' in test
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] use of '>' and '<' in test
- From: "Tim Watts" <timw at 3d3 dot com>
- Date: Thu, 12 Apr 2001 12:32:11 +1000
- Reply-To: xsl-list at lists dot mulberrytech dot com
I had seen the '>' and '<' used in xpath for simular code, so assumed that
it would be OK here.
I'll use the > and < as per XSL
Thanks for your help, and Serdar's help too,
Tim
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Kaganovich,
Yevgeniy (Eugene)
Sent: Thursday, 12 April 2001 12:19 PM
To: 'xsl-list@lists.mulberrytech.com'
Subject: RE: [xsl] use of '>' and '<' in test
XMLSpy complains correctly: you can't have < and > unescaped when you're
doing strings in XML (although XPath examples would show them unescaped,
because XPath is not XML).
So, you should escape them just as you would in any other string:
<xsl:if test="$n lt; $quantity">
Remember, all XML syntax requirements still apply regardless of which
language you're expressing in it.
- Eugene
: -----Original Message-----
: From: Tim Watts [mailto:timw@3d3.com]
: Sent: Wednesday, April 11, 2001 6:53 PM
: To: XSL-List@lists.mulberrytech.com
: Subject: [xsl] use of '>' and '<' in test
:
: <xsl:if test="$n < $quantity">
: <input type='radio'
: name="paymentsystem[{@id}]/priority" value='{$n}'
: onClick='addprority({position()}, {$n});' /> <xsl:value-of
: select="$n" />
: </xsl:if>
:
:
: XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list