Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Problem with XPath comparison operator '>=' ?
Problem with XPath comparison operator '>=' ? [message #26153] Thu, 12 July 2007 10:02 Go to next message
Eclipse UserFriend
Originally posted by: guillaume.riby.fr.ibm.com

Hi guys,
I encountered a problem in some tests i'm doing, using <c:if> tag. I'm
pretty sure that the problem comes from my syntax but i cannot find where,
could you help me please?

Here is my Jet template :

##### TEST PART BEGIN #####
<c:if test="1 >= 1">
TEST #1 :: 1 >= 1
</c:if>
<c:if test="not(not(1 >= 1))">
TEST #2 :: not(not(1 >= 1))
</c:if>
<c:if test="(1 > 1) or (1 = 1)">
TEST #3 :: (1 > 1) or (1 = 1)
</c:if>
<c:if test="not(1 < 1)">
TEST #4 :: not(1 < 1)
</c:if>
##### TEST PART END #####

These 4 equivalent tests actually don't give the same result. What is
generated is :

##### TEST PART BEGIN #####
TEST #3 :: (1 > 1) or (1 = 1)
TEST #4 :: not(1 < 1)
##### TEST PART END #####

Regards.

Guillaume Riby
Re: Problem with XPath comparison operator '>=' ? [message #26315 is a reply to message #26153] Thu, 12 July 2007 12:27 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Guillaume:

Yes, it's a bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=196294).
There is a similar problem with <=.

Paul

"Guillaume Riby" <guillaume.riby@fr.ibm.com> wrote in message
news:08396ec7f3e84a2e5ba1df11fc9ee693$1@www.eclipse.org...
> Hi guys,
> I encountered a problem in some tests i'm doing, using <c:if> tag. I'm
> pretty sure that the problem comes from my syntax but i cannot find where,
> could you help me please?
>
> Here is my Jet template :
>
> ##### TEST PART BEGIN #####
> <c:if test="1 >= 1">
> TEST #1 :: 1 >= 1
> </c:if>
> <c:if test="not(not(1 >= 1))">
> TEST #2 :: not(not(1 >= 1))
> </c:if>
> <c:if test="(1 > 1) or (1 = 1)">
> TEST #3 :: (1 > 1) or (1 = 1)
> </c:if>
> <c:if test="not(1 < 1)">
> TEST #4 :: not(1 < 1)
> </c:if>
> ##### TEST PART END #####
>
> These 4 equivalent tests actually don't give the same result. What is
> generated is :
>
> ##### TEST PART BEGIN #####
> TEST #3 :: (1 > 1) or (1 = 1)
> TEST #4 :: not(1 < 1)
> ##### TEST PART END #####
>
> Regards.
>
> Guillaume Riby
>
>
Re: Problem with XPath comparison operator '>=' ? [message #27066 is a reply to message #26315] Tue, 17 July 2007 14:15 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
The most recent JET 0.8.1 maintenance build (not this is not a release, just
a weekly integration build) contains the fix.

http://www.eclipse.org/modeling/m2t/downloads/?showAll=1& ;hlbuild=M200707120943&project=jet#M200707120943

"Paul Elder" <pelder@ca.ibm.com> wrote in message
news:f756pe$n59$1@build.eclipse.org...
> Guillaume:
>
> Yes, it's a bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=196294).
> There is a similar problem with <=.
>
> Paul
>
> "Guillaume Riby" <guillaume.riby@fr.ibm.com> wrote in message
> news:08396ec7f3e84a2e5ba1df11fc9ee693$1@www.eclipse.org...
>> Hi guys,
>> I encountered a problem in some tests i'm doing, using <c:if> tag. I'm
>> pretty sure that the problem comes from my syntax but i cannot find
>> where, could you help me please?
>>
>> Here is my Jet template :
>>
>> ##### TEST PART BEGIN #####
>> <c:if test="1 >= 1">
>> TEST #1 :: 1 >= 1
>> </c:if>
>> <c:if test="not(not(1 >= 1))">
>> TEST #2 :: not(not(1 >= 1))
>> </c:if>
>> <c:if test="(1 > 1) or (1 = 1)">
>> TEST #3 :: (1 > 1) or (1 = 1)
>> </c:if>
>> <c:if test="not(1 < 1)">
>> TEST #4 :: not(1 < 1)
>> </c:if>
>> ##### TEST PART END #####
>>
>> These 4 equivalent tests actually don't give the same result. What is
>> generated is :
>>
>> ##### TEST PART BEGIN #####
>> TEST #3 :: (1 > 1) or (1 = 1)
>> TEST #4 :: not(1 < 1)
>> ##### TEST PART END #####
>>
>> Regards.
>>
>> Guillaume Riby
>>
>>
>
>
Previous Topic:difference between Jet Project and Jet Transformation Project
Next Topic:Xpath node
Goto Forum:
  


Current Time: Thu Nov 27 10:59:07 GMT 2014

Powered by FUDForum. Page generated in 0.02943 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software