Altova Mailing List Archives
>xsl-list Archive Home
>Recent entries
>Thread Prev - RE: [xsl] use of '>' and '<' in test
>Thread Next - Re: [xsl] use of '>' and '<' in test
RE: [xsl] use of '>' and '<' in test
To:
Date: 4/11/2001 6:30:00 PM
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@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Kaganovich, Yevgeniy (Eugene) Sent: Thursday, 12 April 2001 12:19 PM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' 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@xxxxxxx] : Sent: Wednesday, April 11, 2001 6:53 PM : To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx : 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
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

