You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Corda, Ugo" <Ug...@usa.xerox.com> on 2000/02/11 04:01:37 UTC
Enabling the WML Mime Type
I am trying to use Cocoon with the Nokia WAP Toolkit, but the Toolkit
complains about receiving a "text/html" mime type.
My xsl file contains: <xsl:processing-instruction
name="cocoon-format">type="text/wml"</xsl:processing-instruction>, but it
does not seem to be enough.
Is there something else I should do to enable the WML Mime Type? Something
in the Apache settings?
Thank you,
Ugo Corda
Re: Enabling the WML Mime Type
Posted by Donald Ball <ba...@webslingerZ.com>.
On Thu, 10 Feb 2000, Corda, Ugo wrote:
> I am trying to use Cocoon with the Nokia WAP Toolkit, but the Toolkit
> complains about receiving a "text/html" mime type.
> My xsl file contains: <xsl:processing-instruction
> name="cocoon-format">type="text/wml"</xsl:processing-instruction>, but it
> does not seem to be enough.
> Is there something else I should do to enable the WML Mime Type? Something
> in the Apache settings?
I think instead you want <?cocoon-format type="text/wml"?> in the XML
file. Could be wrong tho.
- donald
Re: Enabling the WML Mime Type
Posted by Lars Pettersson <lp...@sics.se>.
No, the
<xsl:processing-instruction
name="cocoon-format">type="text/wml"</xsl:processing-instruction>
syntax is correct, but you are right about the mime types. Your web server
has to bo configured to include the following:
text/vnd.wap.wml wml
text/vnd.wap.wmlscript wmls
application/vnd.wap.wmlc wmlc
application/vnd.wap.wmlscriptc wmlsc
application/vnd.wap.wbxml wbxml
image/vnd.wap.wbmp wbmp
Add it to your mime.types if you run Apache.
/Lars
On Thu, 10 Feb 2000, Corda, Ugo wrote:
> I am trying to use Cocoon with the Nokia WAP Toolkit, but the Toolkit
> complains about receiving a "text/html" mime type.
> My xsl file contains: <xsl:processing-instruction
> name="cocoon-format">type="text/wml"</xsl:processing-instruction>, but it
> does not seem to be enough.
> Is there something else I should do to enable the WML Mime Type? Something
> in the Apache settings?
>
> Thank you,
> Ugo Corda
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>