cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject RE: JXTemplate boolean syntax
Date Fri, 04 Mar 2005 11:41:09 GMT
Thanks Bart -

Yes, I messed up the order of brackets at the end... 
I can either blame it on a long day, or just admit I'm a
lazy programmer who misses his syntax checker!

Derek

>>> b.molenkamp@bizzdesign.nl 2005/03/03 05:07:32 PM >>>
Hi Derek,

This expression seems good to me, except that you forgot to end it.
You
wrote:

<jx:if test="${bar1 != null &amp;&amp; (foo1!= null">

But should be:
<jx:if test="${bar1 != null &amp;&amp; (foo1!= null)}">

Mind the ")}" at the end.

HTH,
Bart.

> -----Original Message-----
> From: Derek Hohls [mailto:DHohls@csir.co.za] 
> Sent: Thursday, March 03, 2005 4:06 PM
> To: users@cocoon.apache.org 
> Subject: JXTemplate boolean syntax
> 
> How do I use the "and" syntax in a JXTemplate
> boolean test?
> 
> If I have:
> <jx:if test="${bar1 != null && (foo1 != null">
> I get:
> org.xml.sax.SAXParseException: The entity name must immediately
follow
> the '&' in the entity reference.
> 
> But if I use:
> <jx:if test="${bar1 != null &amp;&amp; (foo1!= null">
> or
> <jx:if test="${bar1 != null and (foo1!= null">
> 
> I get:
> org.apache.commons.jexl.parser.ParseException: Encountered ";". Was
> expecting one of: ")" ... "||" ... "or" ... "&&" ... "and" ... "|"
...
> "^" ... "&" ... "==" ... "eq" ... "!=" ... "ne" ... "<" ... "lt" ...
">"
> ... "gt" ... "<=" ... "le" ... ">=" ... "ge" ... "+" ... "-" ... "*"
...
> "/" ... "div" ... "%" ... "mod" ...
> 
> Thanks
> Derek
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
> For additional commands, e-mail: users-help@cocoon.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
For additional commands, e-mail: users-help@cocoon.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message