Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Session Variables in XSLT

309 views
Skip to first unread message

anoop

unread,
Jan 14, 2008, 5:44:00 AM1/14/08
to
Hello,
I want to know , how to access/store value in session Variable in
XSLT for a website to access information.

Thank you

Martin Honnen

unread,
Jan 14, 2008, 7:58:46 AM1/14/08
to
anoop wrote:

> I want to know , how to access/store value in session Variable in
> XSLT for a website to access information.

Well XSLT has no knowledge of server-side stuff like session variables.
To access the session variable you could define a global parameter in
your XSLT stylesheet
<xsl:param name="p1"/>
and then use the XSLT processor's API to set that parameter to the value
of your session variable before you run the transformation.
To set a session variable you might want to look into extension objects
but I am not sure setting a session variable will work that way.
If you need more help then tell us whether you use classic ASP with
MSXML or ASP.NET with XslCompiledTransform.


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

0 new messages