cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Petru Dimulescu <>
Subject how to detect gecko
Date Mon, 20 Sep 2004 09:53:50 GMT

I am trying to detect if the visiting browser is capable of rendering
XUL (that is, if it is one of Mozilla, Firefox, Galeon etc.).

In case it is capable of XUL rendering, I want to serve a XUL, otherwise
HTML but I can't get the BrowserSelector to do that.

I'm using this construct:

<map:match pattern="**-redirect.html">
	<map:select type="browser">
		<map:when test="netscape">
			<map:redirect-to uri="../{1}-cadru.xul"/>
			<map:redirect-to uri="../{1}-cadru.html"/>

The effect of this code is that both Mozilla AND IE gets the XUL. If I
replace test="netscape" by test="mozilla", both Mozilla AND IE get the HTML.

Anybody could guide me, please?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message