You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Michael Wyraz <mi...@evermind.de> on 2001/08/27 16:45:26 UTC

Replacing cocoon1 with cocoon2

Hi!

I'm new on cocoon2 and i'm working a lot with cocoon1.
Is there a possibility to replace cocoon1 simlpy with cocoon2?
That means:
* setting up the webserver to map every request to an xml-file to the cocoon2 
servlet (ok. that's easy ;-)
* make the old xslt processing-instruction working
* make cocoon2 working without a "webapp"

So how can i configure cocoon2 simply to take an xml-file, read and execute 
it's processing instructions and output the data throug the specified 
serializer? When I tried that, I got always the error "the document contains 
no data" :-(

Who can help me?

Thanks a lot. Michael.

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


Re: Replacing cocoon1 with cocoon2

Posted by Berin Loritsch <bl...@apache.org>.
Michael Wyraz wrote:
> 
> Hi!
> 
> I'm new on cocoon2 and i'm working a lot with cocoon1.
> Is there a possibility to replace cocoon1 simlpy with cocoon2?
> That means:
> * setting up the webserver to map every request to an xml-file to the cocoon2
> servlet (ok. that's easy ;-)
> * make the old xslt processing-instruction working
> * make cocoon2 working without a "webapp"
> 
> So how can i configure cocoon2 simply to take an xml-file, read and execute
> it's processing instructions and output the data throug the specified
> serializer? When I tried that, I got always the error "the document contains
> no data" :-(
> 
> Who can help me?


That is not how Cocoon 2 works.  You MUST create a sitemap to control how
your resources move from the source to the destination.  Processing Instructions
are ignored.  Now, if someone wants to create a utility to create a sitemap from
Cocoon 1 resources by trolling through the processing instructions--please post
it back to the list.  It would be invaluable for Cocoon 1 to Cocoon 2 migrations!

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