cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject AW: C2: Setting mime-type for the Serializer
Date Thu, 03 Aug 2000 11:20:24 GMT

sorry, its just me again. Reading the sitemap draft again, I found a third possibility for
setting the mime-type. So the list looks like this:

1.) Setting the mime-type attribute in the map:serialize node
    This is currently ignored (see my bug email), but would be 
    handled by the ResourcePipeline
2.) Setting the contentType parameter inside the map:serialize node
    This works, but is done by every serializer itself
3.) Settign the mime-type attribute in the map:serializer node
    This is not implemented yet

So my new assumption is that the first and the third one are legal and correct and the second
is a relict.
Going further with my thoughts, I think the first has precedence over the third. 

If this all is true, here is a diff for the which together with my extension
to the sitemap (see my other email) enables exactly this setting scheme of the mime-type:

RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/,v
retrieving revision
diff -r1.1.2.11
>         if (mimeType == null && conf != null) {
>             mimeType = conf.getAttribute("mime-type", null);
>        }
>         this.serializerMimeType = mimeType;

The last line includes the bug fix I posted earlier this day.

Carsten Ziegeler

Open Source Group              sunShine - Lighting up e:Business
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn                  

...this mail was scanned for viruses by mailserver...

View raw message