cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcello Granata" <>
Subject Re: xml to wml using Cocoon
Date Tue, 04 Apr 2000 16:11:07 GMT
You should configure cocoon in order to associate the user-agent string it
receives to the media "wap".
Edit and add the proper line.
For example:
browser.9 = wap=<your_user_agent>

----- Original Message -----
From: Laura Kruse <>
To: <>
Sent: Tuesday, 04 April, 2000 17:51
Subject: xml to wml using Cocoon

> I'm pretty sure this has something to do with not setting the mime-type
> somewhere but I don't know where.  In the httpd.conf I have the
> following lines.
> 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
> So if you want to view a wml file in a Nokia phone for example it works
> fine.  So anything ending in a wml extention is readable by the phone.
> The problem becomes when I point the url to something like.
> is that the phone is convinced
> that .xml files are plain text html, well that's the error that it gives
> me.  What confuses me is that it ignores the
> <?xml-stylesheet href="text-wap.xsl" type="text/xsl" media="wap"?> to
> transform it into wml so that the phone can read it.  I'm thinking that
> I need to put somewhere in a config file that xml files should not be
> treated the same as the html files.  But I don't know where. Any
> suggestions?
> - Laura
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message