cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TREGAN Fabien <fabien.tre...@airbus.aeromatra.com>
Subject How are mime type working in C2 ?
Date Mon, 11 Mar 2002 09:48:51 GMT
something I do not understand about mime-type in C2 (the problème only
appears with C2, but maybe it's not C2 related ?)

I use IE 5.5, and I use 2 serializers (default configuration) :

in xmap:
<map:serializer name="svg2jpeg"
src="org.apache.cocoon.serialization.SVGSerializer" 
logger="sitemap.serializer.svg2jpeg" mime-type="image/jpeg"/>
in xconf :
<component-instance name="xml"
class="org.apache.cocoon.serialization.XMLSerializer"
                       mime-type="text/xml"
                       logger="sitemap.serializer.xml"/>

-when I acces image.svg and use the SVGserializer, IE reconize it's a
image/jpeg and open it as an image.
-when I open data.xml and use the XML serializer, IE open it an HTML file (I
have to use 'view source' to see my data, or to use a xml -> xhtml
transformer)

When I open a .xml localy, IE reconize it as an xml file and display the
normal blue/red common treeview.

Is it a C2 related problem ? Is it an hack from IE to handle XHTML ?

fabien.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message