cocoon-dev mailing list archives

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

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 ResourcePipeline.java which together with my extension
to the sitemap (see my other email) enables exactly this setting scheme of the mime-type:

Index: ResourcePipeline.java
===================================================================
RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ResourcePipeline.java,v
retrieving revision 1.1.2.11
diff -r1.1.2.11 ResourcePipeline.java
110a111,114
>         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.

Regards
Carsten Ziegeler

Open Source Group              sunShine - Lighting up e:Business
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                           mailto:cziegeler@sundn.de 
================================================================

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

Mime
View raw message