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

RE: Getting a difinitive answer on XSL & Cookies

Subject: RE: Getting a difinitive answer on XSL & Cookies
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 21 Oct 2004 16:37:55 +0300
javascript typecast
Hi,

> I know that this question may have been done to death on many
> different
> levels, but I was hoping I could get a definitive answer on this
> question, so here goes...
>
> Question:
> Can cookie data be read anywhere in an XSL stylesheet during
> transformation? If so, how?

With an extension, custom URIResolver, or by passing it in as a parameter.

> Additional:
> I know that errors can occur from JavaScript due to typecast
> problems,
> so would using VBScript in its place be of any use? I'm using

Didn't JavaScript have a try-catch statement?

> the MSXSL
> parser, so this isn't a problem. Also, i've figured out how
> to run the
> VBScript during transformation using "msxsl:script" correctly; my
> current problem comes from not being able to access the
> "document.cookie" during transformation to obtain the cookie
> data. This
> is of course because the document hasn't been generated yet,
> but can the
> cookie data be accessed another way?

If you can read it in your script, pass it in as a parameter.

Cheers,

Jarno - Das Ich: Destillat (VNV Nation remix)

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.