You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stefano Mazzocchi <st...@apache.org> on 2000/08/05 20:00:50 UTC
Re: cvs commit: xml-cocoon/xdocs/drafts sitemap-working-draft.xmap
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
>
>
> No revision
>
>
> 1.1.2.14 +2 -2 xml-cocoon/xdocs/drafts/Attic/sitemap-working-draft.xmap
>
> Index: sitemap-working-draft.xmap
> ===================================================================
> RCS file: /home/cvs/xml-cocoon/xdocs/drafts/Attic/sitemap-working-draft.xmap,v
> retrieving revision 1.1.2.13
> retrieving revision 1.1.2.14
> diff -u -r1.1.2.13 -r1.1.2.14
> --- sitemap-working-draft.xmap 2000/08/02 22:48:29 1.1.2.13
> +++ sitemap-working-draft.xmap 2000/08/03 20:09:32 1.1.2.14
> @@ -155,7 +155,7 @@
> final client consumption.
> -->
> <map:readers default="binary">
> - <map:reader name="binary" src="class:///org.apache.cocoon.reading.BinaryReader"/>
> + <map:reader name="binary" mime-type="image/svg" src="class:///org.apache.cocoon.reading.BinaryReader"/>
> </map:readers>
>
> <!--
> @@ -412,7 +412,7 @@
> applying any processing. This is mostly useful when clients
> are capable of handling XML content directly.
> -->
> - <map:read src="./images/logo.svg" mime-type="image/svg"/>
> + <map:read src="./images/logo.svg"/>
> </map:when>
> <map:otherwise>
> <map:generate src="./images/logo.svg"/>
-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!
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------
Re: cvs commit: xml-cocoon/xdocs/drafts sitemap-working-draft.xmap
Posted by Giacomo Pati <Gi...@pwr.ch>.
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