From: Stephen Winnall <[EMAIL PROTECTED]>
Date: Fri, 17 Feb 2006 01:01:45 +0100
I've spent some time googling for BrowserAction and variations of that,
but I haven't found
anything and suspect that I may have to write the thing myself. Does such
a thing already
exist? Or is there already an elegant way of passing the name of the
browser (ideally with
version and OS) to an XSLT in a pipeline?
Well, I was about to suggest you could use the request input module to get
the user-agent header, and pass it into your XSLT with a map:parameter.
However, I noticed in the docs [1] that there's also a
HeaderAttributeModule; that looks like it can return the request header
values too, so take your pick.
Once you've got the user agent string into the XSL, you just need to do some
string manipulation in there to figure out what browser/version/platform it
is.
Andrew.
[1] http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]