Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » Using AND in a test
Using AND in a test [message #17003] Mon, 21 May 2007 06:29 Go to next message
Eclipse UserFriend
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 08:27 Go to previous message
Eclipse UserFriend
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: Tue Apr 29 02:51:40 EDT 2025

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

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

Back to the top