> From: gv [mailto:[EMAIL PROTECTED]] 
> 
> I'm pulling some existing web page content into my
> Cocoon app by simply mapping a URI in Cocoon to an
> HTTP URI. I'm using a Reader with the mime-type set to
> "text/html"; works fine. I also tried a FileGenerator
> and Serializer, both type "html", which also works.
> Which is the preferred way to handle this, and are
> there significant advantages/disadvantages to either
> approach?

If you don't perform (or plan to perform) any transformations on the content
then use Reader - it will read your pages and output it directly, while
generator + serializer pair will do parsing of your page content into SAX
event and then serializing as the same output stream as in case of the
Reader.

Konstantin

> 
> Thanks,
> John
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to