cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Hill <>
Subject Accessing "user agent" within XSLT
Date Fri, 23 Dec 2005 06:59:47 GMT

Is it possible to access either request headers or the "browser" 
selector from within an XSLT template?  I want to all pages sent to MSIE 
to differ slightly from all pages sent to Mozilla/Netscape, and because 
I'm using a lot of pipelines, using a when/otherwise structure in every 
pipeline in my sitemap (which is the only way I know how to do it) would 
be extremely unwieldy.  For example, I would like to do this:
<xsl:when "$useragent = 'explorer'">
    Crazy Explorer workaround
    Code according to W3C standard


Joe Hill

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

View raw message