cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: Garbage or The Quest for the Perfect Template Language
Date Fri, 01 Aug 2003 08:04:22 GMT
Ugo Cei wrote:

> Christopher Oliver wrote:
>
>> Ugo Cei wrote:
>>
>>> These days I'm banging my head against the limitations of template
>>> languages. I've tried XSP and it's not in any way limited, but it has
>>> its share of problems (difficult to debug and offers too many ways to
>>> shoot oneself in the foot), JXTemplate{Transformer,Generator} (no 
>>> way to
>>> call methods on context objects, no decent arithmetic) 
>>
>>
>>
>> What exactly is the problem with the arithmetic in Jexl and/or 
>> JXPath? What problem did you encounter calling methods? You should be 
>> able to with do that with both Jexl and JXPath.
>>
>> Regards,
>>
>> Chris
>
>
> I'll try to come up with an example but I seem to remember having 
> problems doing even a simple counter. And WRT calling Java methods, I 
> must admit I didn't even try it. Since it's not documented I thought 
> it wasn't even implemented ;-).


Checkout the last paragraph of JXPath's PackageFunctions description 
[1], this may be what you're looking for : the whole classpath is 
accessible through fully-qualified names.

[1] 
http://jakarta.apache.org/commons/jxpath/apidocs/org/apache/commons/jxpath/PackageFunctions.html



Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



Mime
View raw message