cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <Giacomo.P...@pwr.ch>
Subject Re: cvs commit: xml-cocoon/xdocs/drafts sitemap-working-draft.xmap
Date Mon, 14 Aug 2000 09:30:44 GMT
Stefano Mazzocchi wrote:
> 
> giacomo@locus.apache.org wrote:
> >
> > giacomo     00/08/03 13:09:34
> >
> >   Modified:    xdocs/drafts Tag: xml-cocoon2 sitemap-working-draft.xmap
> >   Log:
> >   Making readers consistent with serializers concerning mime-type attribute
> >
> >   Revision  Changes    Path
> >   No                   revision
> 
> -1!!!
> 
> I don't need different readers for each mime-type!!! I should be able to
> use one reader implementation and indicate the mime-type at need.
> 
> Otherwise, we end up having things like
> 
> <map:readers>
>  <map:reader name="binary" mime-type="image/svg"
> src="class:///org.apache.cocoon.reading.BinaryReader"/>
>  <map:reader name="binary" mime-type="image/jpg"
> src="class:///org.apache.cocoon.reading.BinaryReader"/>
>  <map:reader name="binary" mime-type="image/gif"
> src="class:///org.apache.cocoon.reading.BinaryReader"/>
>  <map:reader name="binary" mime-type="text/plain"
> src="class:///org.apache.cocoon.reading.BinaryReader"/>
>  <map:reader name="binary" mime-type="text/html"
> src="class:///org.apache.cocoon.reading.BinaryReader"/>
> </map:readers>
> 
> which is plain silly!

You might be right. I've thought of it as a default mime-type. You
should be able to overwright it in the pipeline section at <map:read
mime-type="..." .../>.

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch

Mime
View raw message