Hi,
Given IE7's super-dooper standard CSS rendering, I'm trying to serve
alternative CSS links to MSIE browsers.
I've noticed the:
<map:selectors default="browser">
<map:selector name="browser" logger="sitemap.selector.browser"
src="org.apache.cocoon.selection.BrowserSelector">
...
<browser name="explorer" useragent="MSIE"/>
...
bit in webapp/sitemap.xmap. How would we actually use this within our .xsl
files to select CSS links based on e.g., the useragent?
For now, we've added:
<map:parameter name="browser" value="{request-header:user-agent}"/>
(a lucky guess that seems to work!) to our publication-sitemap.xmap
and pick it up with a:
<xsl:param name="browser"/>
and e.g.,
<xsl:value-of select="$browser" />
What is the best way to do this and are the request-header: variables
etc. documented anywhere?
Regards,
James
--
[EMAIL PROTECTED]
SDF-EU Public Access UNIX System - http://sdf-eu.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]