Re: [xsl] RE: Accessing Browser Header from within XSL

Subject: Re: [xsl] RE: Accessing Browser Header from within XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 16 May 2007 14:32:37 +0100
> Is there a way to access the browser header (Accept-Language) variables
> from within an XSL template? 

you can declare one or more global parameters to the stylesheet, and
pass those in when you invoke the transform. cocoon has the accept
headers available and can specify stylesheet parameters as I recall.
(although it's a year or two since I used cocoon). So XSLT doesn't know
anything about http headers, it's just a string parameter as far as XSLT
is concerned.

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread