Bugs item #1381029, was opened at 2005-12-15 01:41 Message generated for change (Comment added) made by maliger You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1381029&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: 0.85 Status: Open Resolution: None Priority: 5 Submitted By: sand0z (sand0z) Assigned to: Nobody/Anonymous (nobody) Summary: Expression evaluation less than or equals requires < Initial Comment: I'm using nant build 0.85.2143.0; nightly 11/13/2005. I want to see if one integer is less than or equal to another. That is, compare to integers using <= 1. So I write my test: <if test="${5 <= 0}" > <echo message="Val 1 not-less-or-equal-to 0 or less." /> </if> I shouldn't get a: "Error loading buildfile. '<', hexadecimal value 0x3c, is an invalid attribute character, Line 159, position 20." (I've attached the stack trace) 2. If I go: >=, as in: <if test="${5 >= 0}" > <echo message="Val 1 not-less-or-equal-to 0 or less." /> </if> Things work fine. 3. If I go: <= <if test="${5 <= 0}" > <echo message="Val 1 not-less-or-equal-to 0 or less." /> </if> Things work fine. 4. If I go: == <if test="${5 == 0}" > <echo message="Val 1 not-less-or-equal-to 0 or less." /> </if> Things work fine. Thanks for looking into this! If a bug has already been submitted for this, please forgive, I did do some searching to see if this bug existed, but if something was there, I couldn't find it. ---------------------------------------------------------------------- Comment By: Martin Aliger (maliger) Date: 2005-12-15 07:53 Message: Logged In: YES user_id=655297 This is "by design". In fact everything built atop of XML have this flaw. XSLT comes to my mind, but there are alot of technologies around. Maybe we should stress this fact in documentation. I was unable to find any mention of < at all. (expression page?) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1381029&group_id=31650 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers