[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to extract HTTP Headers information using XSLT

Subject: Re: How to extract HTTP Headers information using XSLT
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 16 Aug 2007 15:41:07 +0200
Re:  How to extract HTTP Headers information using XSLT
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.