Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 83739 invoked from network); 3 Aug 2000 11:17:42 -0000 Received: from sundn.pb.teuto.net (HELO viruswall.ynes.de) (212.8.194.130) by locus.apache.org with SMTP; 3 Aug 2000 11:17:42 -0000 Received: from 10.10.1.10 by viruswall.ynes.de (InterScan E-Mail VirusWall NT); Thu, 03 Aug 2000 13:16:51 +0200 (Westeuropaeische Sommerzeit) Received: from hw0230 (fw-dmz.ynes.de [10.10.1.1]) by mail.ynes.de (8.9.3/8.9.3/NoSpam) with SMTP id MAA10700 for ; Thu, 3 Aug 2000 12:16:47 +0200 From: "Carsten Ziegeler" To: Subject: AW: C2: Setting mime-type for the Serializer Date: Thu, 3 Aug 2000 13:20:24 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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=20 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.=20 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: = /home/cvspublic/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ResourcePi= peline.java,v retrieving revision 1.1.2.11 diff -r1.1.2.11 ResourcePipeline.java 110a111,114 > if (mimeType =3D=3D null && conf !=3D null) { > mimeType =3D conf.getAttribute("mime-type", null); > } > this.serializerMimeType =3D mimeType; The last line includes the bug fix I posted earlier this day. Regards Carsten Ziegeler Open Source Group sunShine - Lighting up e:Business =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn www.sundn.de mailto:cziegeler@sundn.de=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ------------------------------------------------------------------------------------------ ...this mail was scanned for viruses by mailserver...