Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Using AND in a test
Using AND in a test [message #17003] Mon, 21 May 2007 10:29 Go to next message
Eclipse User
Originally posted by: evaandoli.dodo.com.au

Hi,

Can you use 'and' type statement in a test
eg.

<c:choose>
<c:when test="$myVar/@kind = 'FIELD' AND $myVar/@kind2 = 'TEXT'">
content to process if test condition is satisfied
</c:when>
.... other <c:when> and <c:otherwise> tags ...
</c:choose>

if so what is the syntax.
Re: Using AND in a test [message #17035 is a reply to message #17003] Tue, 22 May 2007 12:27 Go to previous message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Stu:

The proper conjunction is 'and'. I just re-read the XPath spec to see
whether the parser should be doing a case-insensitive compare. Here's all I
have to go on:

http://www.w3.org/TR/xpath#NT-AndExpr

I have interpreted the omission of any discussion on case-insensitivity to
mean that the parser should match 'and' only. If you feel the parser should
be case insensitive on this (and other keywords, such as 'or'), please
submit an enhancement bugzilla.

Paul

"Stu" <evaandoli@dodo.com.au> wrote in message
news:f2rsb5$4e0$1@build.eclipse.org...
> Hi,
>
> Can you use 'and' type statement in a test
> eg.
>
> <c:choose>
> <c:when test="$myVar/@kind = 'FIELD' AND $myVar/@kind2 = 'TEXT'">
> content to process if test condition is satisfied
> </c:when>
> ... other <c:when> and <c:otherwise> tags ...
> </c:choose>
>
> if so what is the syntax.
>
Previous Topic:Jet : define recursive fonction.
Next Topic:Trying to use count() on subset of nodes
Goto Forum:
  


Current Time: Fri Oct 24 20:50:23 GMT 2014

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

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