Hi!

  I wouldn't do it that way because browser sniffing isn't reliable.
  You should use IEs conditional comments instead:

  http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp

  But to answer your question: the request-header variables are
  documented in the HTTP-RFC. For the User-Agent:

  http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43

  A list of user agent strings:

  http://www.pgts.com.au/pgtsj/pgtsj0208c.html


regards

  Martin

am Mittwoch, 25. Oktober 2006 um 17:58 schrieben Sie:

> 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]





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

Reply via email to