You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gerry Kaplan <gk...@kaplansoftware.com> on 2005/10/13 06:14:58 UTC
Setting mimetype for serializer
My application generates a stream of wordml (microsoft's XML document
format). I'd like to serialize this to the browser and have MS word open
automatically to show the generated document.
Is there a serializer that will do this, or do I have to create a new one?
Thanks,
Gerry
Re: Setting mimetype for serializer
Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 13 oct. 05, à 06:14, Gerry Kaplan a écrit :
> ...Is there a serializer that will do this, or do I have to create a
> new one?..
you can just *configure* a new one, here's an example for WML:
<map:serializer
logger="sitemap.serializer.wml"
mime-type="text/vnd.wap.wml"
name="wml"
src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//WAPFORUM//DTD WML
1.1//EN</doctype-public>
<doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-
system>
<encoding>ASCII</encoding>
<omit-xml-declaration>yes</omit-xml-declaration>
</map:serializer>
-Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org