On Thu, 17 Jan 2002, [EMAIL PROTECTED] wrote: > Hello all ! > > This must be a trivial question and discussed here before. Still, I > couldn't find a solution to my problem with AxKit and WAP. > > I want to use WAP stylesheet whenever a WAP browser requests a xml file. > Depending on the HTTP_USER_AGENT, a WAP browser gets WML page. > If another browser (IE/NS) asks the same xml file, another stylesheet is > used to present a HTML page. > > How is it possible to send text/vnd.wap.wml content-type to WAP browser > ? (text/html is default, I guess...) > > httpd.conf AxKit sample and other examples appreciated.
(this assumes all files get processed in exactly the same way, but see AxAdd<Foo>Processor directives in the AxKit man pages for more ways to do it) AxAddPlugin Apache::AxKit::MediaChooser::WAPCheck <AxMediaType handheld> AxAddProcessor text/xsl /stylesheets/page_to_wml.xsl </AxMediaType> <AxMediaType screen> # default is screen - web browsers like IE and NS use that AxAddProcessor text/xsl /stylesheets/page_to_html.xsl </AxMediaType> Make sure you set the outgoing content type in your XSL. Hope that helps! Also, WAPCheck has no docs, and may also not be up to date regarding all WML browsers, so any patches to that would be MUCH appreciated. -- <!-- Matt --> <:->Get a smart net</:-> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
