cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: cvs commit: xml-cocoon/xdocs/drafts sitemap-working-draft.xmap
Date Sat, 05 Aug 2000 18:00:50 GMT
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.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message