Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 31037 invoked by uid 500); 13 Nov 2001 15:49:41 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 31024 invoked from network); 13 Nov 2001 15:49:40 -0000 To: cocoon-dev@xml.apache.org Subject: Re: something that bugs me Message-ID: <1005666553.3bf140f91ccbd@mail.otego.com> Date: Tue, 13 Nov 2001 16:49:13 +0100 (CET) From: Giacomo Pati References: <3BE149F5.A8E7D557@apache.org> <3BE938EF.65B74CBC@ivision.fr> <3BF13D68.20E6428C@ivision.fr> In-Reply-To: <3BF13D68.20E6428C@ivision.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.4 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Quoting Sebastien Koechlin : > I did not receive any answer about my last message about this. > > > > > > > > > > > > > > > > > > > > > > > > > What about > > > > > > with the help of a file to map content-type according to > filename extention ? > > Is it possible to use a mapping when the mime-type attribute > does not exist ? There is a getMimeType method specified in the SitemapOutputComponent (which Readers extend). This method is the most accepted mime-type to be used by the engine. If this returns null (as the default implementation does) next in the chain is the mime-type attribute specified at the map:read element in the sitemap. If even there isn't a mime-type specified the one mentioned in the component definition ( is take. This procedure is used for Serializers as well. Giacomo > > Such mapping is already written in xml form in > $TOMCAT_HOME/conf/web.xml > > -- > S�bastien Koechlin - IVision - skoechlin@ivision.fr > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org