It is currently Fri May 18, 2012 3:28 pm


Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Apache Cocoon
PostPosted: Wed Sep 22, 2010 8:41 am 
Site Admin

Joined: Sat Aug 02, 2008 8:00 am
Posts: 147
Hi Every body
I recently started looking for Apache Cocoon and started learning about it
it looks very interesting framework that as I learned so far is based on spring framework and uses the pipeline SAX processing method to process xml decuments into different formats to be used on the web
I think the most interesting this about cocoon will be the xslt transformation and how easy it can provide it
also the variety of formats and the big community for support wil make it an interesting product to use

I'll keep reading and update the topic about anything new or interesting.

_________________

Muhammad Safwat Fuad
The Java Code Admin
Java Technical Lead.
Mobile: +2010-2942-538
Email:mtv134@yahoo.com


Top
 Profile Send private message  
 
 Post subject: Re: Apache Cocoon
PostPosted: Wed Sep 22, 2010 10:54 am 
Site Admin

Joined: Sat Aug 02, 2008 8:00 am
Posts: 147
Cocoon uses the pipeline to create static and dynamic resources on your web site from xml input using 3 components
1- Generator (Like XMl and File Generators)
the generator is responsible for reading the input for Cocoon
2- Transformer
an examle of the transformer is the XSLT transformer
transformers transform the xml generated from the negerator to generate the output
3- Serializer
the serializer writes the generated transformed output to the client

Cocoon uses a method called sitemap where it defines certain patterns for the resources that the client is going to be generated by cocoon and the generator, transformer and serializer for this resource following is an exmaple fo the sitemap definition and it is an xml file
Code:
<map:pipeline>
   <map:match pattern="hello.pdf">
    <map:generate src="docs/samples/hello-page.xml"/>
    <map:transform src="stylesheets/page/simple-page2fo.xsl"/>
    <map:serialize type="fo2pdf"/>
   </map:match>
  </map:pipeline>


this sitemap tells cocoon that to listen for requests for hello.pdf and to use docs/samples/hello-page.xml as the input file and use the stylesheets/page/simple-page2fo.xsl file to transform it and to write it to the client using FOP as PDF file

This makes the developement of web resources quite easy

_________________

Muhammad Safwat Fuad
The Java Code Admin
Java Technical Lead.
Mobile: +2010-2942-538
Email:mtv134@yahoo.com


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


Who is online

Registered users: BigBobFrox, europhory, m3krhaba6


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net

[
SEO MOD © 2007 StarTrekGuide ]