cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Subject Re: Additions to XSP util:* taglib
Date Tue, 02 May 2000 09:06:17 GMT
>I like it for 2 reasons:
>1. Target langauge independent (doesn't mutter Java/JS/C/C++/Perl/TCL

But either you reimplement the tags in each possible language (!!! lots of 
maintenance for the Cocoon project), or you only implement it in 
Java(possible, but mix-and-match languages in that way is not a good idea 
for performance and clarity - because of basic differences in languages as 
already mentioned).

Ask yourself - why do we need to reinvent the wheel here? To simplify 
Java/JS/C etc. programming? No, it doesn't simplify it. To ease transition 
from XSLT? Well, sorry, IMO if people are going to use real programming 
languages they should use real programming languages, not wrappers around 

>For example: I can write:
>     <util:when test="a!=b">
>         A!=B
>     </util:when>
>     <util:otherwise>
>         A==B
>     </util:otherwise>
>and then XSP will compile it to Java
>then if I'll want to switch to JavaScript or C++ :), then I need only to
>write new logicsheet ...

But you are not actually programming in Java/JS/C++, you are programming in 
"Zvis' tag language".

>2. Much less verbose, than writing many times <xsp:logic> tags with
><[CDATA[ ... ]]> inside :)
>compare between:
><util:if test="a &gt; b">
>    <h1>A greater than B!</h1>
>    <h1>A greater than B!</h1>

No, that's not correct. You can use &gt; inside xsp:logic as well.



270+ Open Source Java links!

Get Your Private, Free E-mail from MSN Hotmail at

View raw message