cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Micro-Cocoon ... Corona
Date Fri, 14 Mar 2008 18:33:46 GMT
On Mar 14, 2008, at 2:22 PM, Luca Morandini wrote:

> Sylvain Wallez wrote:
>> So we can take a different approach, and consider that we can use  
>> plain programming languages rather than grow our own "pseudo- 
>> languages". A well-defined Java API and its Javascript binding  
>> would make people way more productive than an XML-based language  
>> like the sitemap.
>
> Do you mind terribly showing me an example of the use of this API ?

http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/blocks/xsp/java/org/apache/cocoon/components/language/markup/LogicsheetCodeGenerator.java


:-P


Seriously - it does exactly the same thing you wrote just below:

Vadim

> Something like:
> CocooonStream stream= new CocoonStream("file", "documents/mydoc.xml");
> stream.transform("xslt", "xsl/doc2html.xsl");
> return stream.serialize("html");
>
> ?
>
> I understand the usefulness of having a programmatic API and this  
> approach plays well with the Java monoculture, but, there aren't  
> libraries already doing that ?
>
> Regards,
>
> --------------------
>   Luca Morandini
> www.lucamorandini.it
> --------------------


Mime
View raw message