In one word: flexibility.

Cocoon is an incredibly fine piece of work, and it allows you
to do things that you would otherwise have to write yourself.

It comes down to maintainability.  If you have a small site,
taking care of transformations yourself is probable the
quickest way to go.  However, if you have to do anything remotely
complex (like backing to a database or other external resource),
then you will appreciate all that Cocoon can offer you.

You have database connection pooling, caching, multiple
transformation pipelines, successful separation of concerns.

All of these things only scratch the surface.

Bala Sadras wrote:
> 
> Hi
> 
>  What is advantage of using a publishing framework like cocoon as opposed to
> using xalan to transform xml to HTML?.  What are the pros and cons?  Thanks.
> 
> Bala
> 
> -----Original Message-----
> From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 26, 2001 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: cocoon comparison with dom4j
> 
> Bala Sadras wrote:
> >
> > Does cocoon support following features?
> >
> > Support Java 2 Collections
> 
> Sure--its all in the JVM
> 
> > Convert to and from DOM trees
> 
> Yes--though for performance reasons I don't know why you would
> want to.  We do it for small DOM fragments that we need to
> reference later.
> 
> > Can implement DOM interfaces natively
> 
> What purpose does this support?
> 
> > Integrated XPath API support
> 
> This is part of Xalan
> 
> > Bundled XPath implementation
> 
> Same thing.
> 
> > Support for JAXP/TrAX for XSLT integration
> 
> Absolutely--it is at the core.
> 
> > Event based procerssing support
> 
> Absolutely this is the core feature of Cocoon 2
> 
> > Capable of processing continuous XML streams
> 
> Yes!
> 
> > Capable of processing massive documents
> 
> Yes!
> 
> > Your response is much appreciated.
> 
> Cocoon version 2.0+ is an incredible beast that does your little
> laundry list and more.  But keep in mind Cocoon is a framework.
> If you need a library's functionality, then include the library.
> Cocoon is not a DOM implementation, it is not a Parser, it is
> not an XPath API.  It USES those things, but Cocoon is a publishing
> framework--pure and simple.
> The information contained in this message and any attachments is intended
> only for the use of the individual or entity to which it is addressed, and
> may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from
> disclosure under applicable law. If you have received this message in error,
> you are prohibited from copying, distributing, or using the information.
> Please contact the sender immediately by return e-mail and delete the
> original message from your system.
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

S/MIME Cryptographic Signature

Reply via email to