[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: use of '>' and '<' in test

Subject: RE: use of '>' and '<' in test
From: "Kaganovich, Yevgeniy (Eugene)" <ykaganovich@xxxxxxxxxxx>
Date: Wed, 11 Apr 2001 19:19:03 -0700
xml test statement
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@xxxxxxx]
: Sent: Wednesday, April 11, 2001 6:53 PM
: To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
: Subject:  use of '>' and '<' in test
: 
: 
: Hi,
: 
: Simple question.
: I am testing if one variable is less than another in a test 
: statement (see
: code sample below), however in XMLspy it complains.
: 
: I've seen other XSL use the same syntax, but wonder if there 
: is another way
: to structure the test so that XMLspy stays happy! ;-)
: 
: Thanks in advance for your help,
: 
: Tim
: 
: <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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.