Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookie and XSLT  RSS feed

 
David Neff
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to create a cookie in XSLT? I am very new to XSLT and would greatly appreciate any help.
Thanks a lot.
David
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!