I am attempting to use the brwoser selector to serve up xhtml pages as
mime-type xhtml+xml where the browser accepts that type, or text/html
otherwise.

So I coded a selector thus:

   <map:selectors default="browser">
      <map:selector logger="sitemap.selector.browser" name="browser" 
src="org.apache.cocoon.selection.BrowserSelector">
        <!--+
             | NOTE: The appearance indicates the search order. This is very important 
since
             |       some words may be found in more than one browser description. 
(MSIE is
             |       presented as "Mozilla/4.0 (Compatible; MSIE 4.01; ...")
             +-->
        <browser name="html" useragent="MSIE"/>
        <browser name="html" useragent="MSPIE"/>
        <browser name="html" useragent="HandHTTP"/>
        <browser name="html" useragent="AvantGo"/>
        <browser name="html" useragent="DoCoMo"/>
        <browser name="xhtml" useragent="Opera"/>
        <browser name="html" useragent="Lynx"/>
        <browser name="html" useragent="Java"/>
        <browser name="xhtml" useragent="Nokia"/>
        <browser name="xhtml" useragent="UP"/>
        <browser name="xhtml" useragent="Wapalizer"/>
        <browser name="xhtml" useragent="Mozilla/5"/>
        <browser name="xhtml" useragent="Netscape6/"/>
        <browser name="xhtml" useragent="Mozilla"/>
      </map:selector>
    </map:selectors>

and I started doing some testing with opera, mozilla. epiphany and lynx..

Then I installed Konqueror to test with that too.

I immediately came up against some oddities - I tried adding a
useraget of Konqueror, konqueror/3.2 or KHTML, but none seem to make
any difference.

What happens, is that if I type the URL in the Konqueror location
field, it accepts the page, but if I try to navigate via a hyperlink,
it prompts me to download or cancel, and XHTML family document.

Can anyone tell me:
a) what useragent I should code for Konqueror (it looks like the
Mozilla/5 line will match if I don't get a better match:
As the user agent is: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like 
Gecko)
b) Why this difference of behaviour?
-- 
Colin Paul Adams
Preston Lancashire

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to