aspose file tools*
The moose likes XML and Related Technologies and the fly likes Cookie and XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Cookie and XSLT" Watch "Cookie and XSLT" New topic

Cookie and XSLT

David Neff

Joined: Aug 01, 2006
Posts: 1
Is it possible to create a cookie in XSLT? I am very new to XSLT and would greatly appreciate any help.
Thanks a lot.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12682
Cookies in the usual (web browser) sense are generally set by headers in a web service response. You can use XSLT to create the body of a web page but not the headers.
You could use the XSLT to create JavaScript that runs when the page is loaded and sets a cookie, but that is getting pretty complicated.

Java Resources at
I agree. Here's the link:
subject: Cookie and XSLT
Similar Threads
Web Services -based integration approach
converting xml to html
Is Javaranch RSS Enabled?
converting xml to html
how to get the data stored in xml into html