cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Schlabach" <>
Subject AW: AW: Strange content inserted to XML file when served by Cocoon
Date Sat, 26 Apr 2003 07:05:56 GMT
For the benefit of all: It is a bug! #17763
It was reported March 7th already and is still in the state of "New".
I will have a loot at it later today and make up my mind if there will
be a workaround.

-----Urspr√ľngliche Nachricht-----
Von: Geoff Howard [] 
Gesendet: Freitag, 25. April 2003 22:40
Betreff: RE: AW: Strange content inserted to XML file when served by

> -----Original Message-----
> From: Torsten Schlabach []
> Hi,
> last update on this:
> Using a reader rather than the FileGenerator makes at least a
> workaround. (FileGenerator was the default and even explicitely
> switching to type="file" does not solve the problem)
> Q: When would I use a FileGenerator rather than a reader? What do I
> up by swichting from a FileGenerator to a reader?


A generator starts the flow of sax events in a pipeline (which is why
generator is configured by default to apply tidy to .html files - other
wise they would not parse correctly - every unclosed <br> tag, unquoted
etc would give the parser a fit.  If your .html are really xhtml, you
need this and can configure around it.

A reader sidesteps the sax pipeline that is at the core of cocoon and
you to
just serve up non-xml content.  You could do this directly from a static
which would be a good idea for a lot of this type of content, but Cocoon
require you to do that because:
- It's an extra step that can be a needless pain for some
- You may want to control access to the via Cocoon's other non-xml
facilities in
the sitemap (actions, flow, etc).

So, what do you give up?  A SAX pipeline, and thereby ability to further
the data with map:transform and ability/need to control output


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message