XSLT is a transformation language to transform one format into another.
HTTP headers are part of a network protocol and not part of a data
format. However, in HTML it is custom to add HTTP header information
into the <head> section using <meta> tags.
If you mean that you want the XSLT to have access to the HTTP
information than the answer is no, it cannot be done. If you mean you
want to extract the header information and add it to your XML input
files prior to transformation than it is something you'll have to sort
out with Cocoon and then XSLT can do it easily.
Alternatively, you can pass the HTTP information as parameters to the
XSLT transformation and inside XSLT you have to declare them as global
parameters. How you can pass them on with Cocoon, I do not know.
Cheers,
-- Abel Braaksma
Zulfikar Dholkawala wrote:
Hi all,
Just wondering would it be possible to extract information from HTTP
headers (like network information) using XSLT?
Basically scenario for me is like below:
If a user (on an EVDO device) is browsing a mobile portal in an EVDO
(fast) network, then the home page categories will be returned as a
series of buttons on a grid. If a user is browsing a mobile portal on
a slower network, then no grid and just standard list of options will
be returned.
Here, Network information will be passed either of the following ways:
1. Pass it into HTTP headers
2. Appended to URL as a additional parameter
3. Or any other means which is suitable to customer.
I am using Cocoon framework with Tomcat.
Can any one give some input/ideas or examples how it could possibly be done?
Thanks. Regards.
Zulfiqar
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--