cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@iname.com>
Subject Re: Comitting components
Date Thu, 07 Mar 2002 21:57:54 GMT

Way cool !

We've been using castor .93 for quite serious xml traffic between hundreds win c++ clients
and a java portal. Great performance.

Donating this transformer also saved me some work.
As I mentioned before I am workin on a little prototype that'll hopefully introduce some HTML
Forms symmetry in cocoon.

>From an earlier email by Konstantin:
>It would be also fine to have an action that >performs the opposite
>operation: set properties of JavaBean object(s) with request param values
>using XPath expressions, e.g.:
>customer/firstname = Ozzy
>customer/lastname = Osbourne
>can be converted to XML:
><customer>
>    <firstname>Ozzy</firstname>
>    <lastname>Osbourne</lastname>
></customer>

I am working on this with Dmitri's help using his JXPath lib.
http://cvs.apache.org/viewcvs/jakarta-commons/jxpath/

It's being used for Jakarta JSTL and Workflow (which says enough for its quality).

Let me know if someone else is working in this direction so that we don't double the work.

Regards,

Ivelin





-----Original Message-----
From: "Nicola Ken Barozzi" <nicolaken@apache.org>
Date: Thu, 7 Mar 2002 18:03:30 +0100
To:  <cocoon-dev@xml.apache.org>
Subject: Re: Comitting components


> From: "Matthew Langham" <mlangham@s-und-n.de>
> 
> > today two new "things" were donated/comitted to the Cocoon scratchpad -
> the
> > Castor Transformer and the POI Serialization code.
> >
> > It would help people like me (who do not read all the messages or much
> worse
> > remember them all) if comitters could add a couple of lines or paragraphs
> as
> > to what can be done with the new components when sending off the
> > announcements.
> 
> You are right. Thank you for the pointer.
> Here is a brief explanation.
> 
> ----------------------
>  POI Serializer
> ----------------------
> 
> The POI project, now hosted on http://jakarta.apache.org/poi/ , is a project
> that consists of APIs for manipulating various file formats based upon
> Microsoft's OLE 2 Compound Document format using pure Java. OLE 2 Compound
> Document Format based files include most Microsoft Office files such as XLS
> and DOC.
> 
> The HSSFSerializer uses POI's HSSF xls file write API
> http://jakarta.apache.org/poi/hssf/index.html , and is now in Cocoon proper
> (not scratchpad).
> 
> It makes it possible to output xml following the schema of gnumeric to an
> xls file.
> Examples are present in the "extra" section, under "legacy file formats".
> 
> To install the Cocoon war easily, do:
> 
> build.(sh|bat) clean
> build.(sh|bat) installwar
> 
> ----------------------------
>  Castor Transformer (in scratchpad)
> ----------------------------
> 
> Marshals a object from the the sitemap, request, session or Servlet Context
> into a series of SAX events, and can seek for the java bean automaticaly.
> TheCastortransformer can be configured with a default mapping. This mapping
> is used as long as no other mappings are specified.
> 
>   <map:transformer name="CastorTransformer"
>                    src="org.apache.cocoontransformation.CastorTransformer">
>     <mapping>castor/xmapping.xml</mapping>
>   </map:transformer>
> 
> A sample for the use:
>    <root xmlns:castor="http://castor.exolab.org/cocoontransfomer">
>       <castor:InsertBean source="session" key="invoice"/>
>       <castor:InsertBean source="sitemap" key="product"
>                mapping="castor/specicalmapping.xml"/>
>    </root>
> 
> The CastorTransfomer support only one Element castor:InsertBean.
> This element is replaced with the marshalled object.
> 
> Other information can be found in the scratchpad sample sub-sitemap under
> docs.
> 
> To install the Cocoon war with scratchpad stuff easily, do:
> 
> build.(sh|bat) clean
> build.(sh|bat) installscratchpadwar
> 
> The demo is under http://server:port/cocoon/samples/castor/
> 
> --
> Nicola Ken Barozzi                   nicolaken@apache.org
>             - verba volant, scripta manent -
>    (discussions get forgotten, just code remains)
> ---------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 

-- 

_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Travelocity.com is giving away two million travel miles.
http://ad.doubleclick.net/clk;3969773;6991039;g?http://svc.travelocity.com/promos/millionmiles_main/0,,TRAVELOCITY,00.html


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


Mime
View raw message