cocoon-users mailing list archives

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

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
</xsl:when>
<xsl:otherwise>
    Code according to W3C standard
</xsl:otherwise>

Thanks,

Joe Hill

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


Mime
View raw message