cocoon-users mailing list archives

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

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:when>
		<map:otherwise>
			<map:redirect-to uri="../{1}-cadru.html"/>
		</map:otherwise>
	</map:select>
</map:match>


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?
Thanks,

Adrian.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message