You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Colin Paul Adams <co...@colina.demon.co.uk> on 2004/07/24 13:21:28 UTC
Mime type for use with Konqueror
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Mime type for use with Konqueror
Posted by Colin Paul Adams <co...@colina.demon.co.uk>.
>>>>> "Volkm@r" == Volkm@r <pl...@arcor.de> writes:
Volkm@r> I have changed the image. Select the upper radio button
Volkm@r> which says "Datei in eingebettetem Betrachter anzeigen".
Thank you - that's fixed it.
--
Colin Paul Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Mime type for use with Konqueror
Posted by "Volkm@r" <pl...@arcor.de>.
Colin Paul Adams wrote:
>>>>>> "Volkm@r" == Volkm@r <pl...@arcor.de> writes:
>
>
>
>
> Volkm@r> Sounds like the same confusion that I had with KDE
> Volkm@r> mime-type setting.
>
> Volkm@r> Set 'embedding' according to
> Volkm@r> <http://home.arcor.de/plsdontreply/kdemimexhtml.png> and
> Volkm@r> Konqueror should let you even navigate through the pages.
>
> Unfortunately, I cannot read the German, so i cannot work out what you
> are selecting here.
I have changed the image. Select the upper radio button which says
"Datei in eingebettetem Betrachter anzeigen".
> I only see one option - Konqueror.
> And Konqueror simply says it can't handle that type.
That's KDE and mime!
--
Volkmar W. Pogatzki
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Mime type for use with Konqueror
Posted by Colin Paul Adams <co...@colina.demon.co.uk>.
>>>>> "Volkm@r" == Volkm@r <pl...@arcor.de> writes:
Volkm@r> Sounds like the same confusion that I had with KDE
Volkm@r> mime-type setting.
Volkm@r> Set 'embedding' according to
Volkm@r> <http://home.arcor.de/plsdontreply/kdemimexhtml.png> and
Volkm@r> Konqueror should let you even navigate through the pages.
Unfortunately, I cannot read the German, so i cannot work out what you
are selecting here.
I only see one option - Konqueror.
And Konqueror simply says it can't handle that type.
--
Colin Paul Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Mime type for use with Konqueror
Posted by Colin Paul Adams <co...@colina.demon.co.uk>.
>>>>> "Volkm@r" == Volkm@r <pl...@arcor.de> writes:
Volkm@r> Colin Paul Adams wrote:
>> 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
Volkm@r> The correct one is "application/xhtml+xml".
Yes. Just a typo in the email message. Sorry.
>> [...] 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.
Volkm@r> Sounds like the same confusion that I had with KDE
Volkm@r> mime-type setting.
It seems that mozilla exhibits the same behaviour!
--
Colin Paul Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Mime type for use with Konqueror
Posted by "Volkm@r" <pl...@arcor.de>.
Colin Paul Adams wrote:
> 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
The correct one is "application/xhtml+xml".
> [...]
> 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.
Sounds like the same confusion that I had with KDE mime-type setting.
Set 'embedding' according to
<http://home.arcor.de/plsdontreply/kdemimexhtml.png>
and Konqueror should let you even navigate through the pages.
HTH
--
Volkmar W. Pogatzki
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org