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

RE: How to pass variable from one file to xsl file

Subject: RE: How to pass variable from one file to xsl file
From: "abradoom" <thiabek@xxxxxxxxxxx>
Date: Fri, 6 Sep 2002 14:43:56 UT
pass variable to xsl file
Thanks 
I tried that but not working.
May be xsl file is not getting the value of $sessionId.
can you tell me how can i do if suppose sessionid is ab12cd34ef56gh78
then should i used call template as i have declared param name
=sessionId (how?).
how it will get the default value.
can you help me
thiabek



On Fri, 6 Sep 2002 10:19:39 +0100, "Khan, Amir" <amkhan@xxxxxxxxxx>
said:
> you can use <xsl:param name="sessionId">defaultValue</xsl:param> at the
> TOP
> of your XSL file and then use the xsl engine to pass through the value
> 
> in the XSL you can access the value as $sessionId  I've not show how to
> get
> it INTO the xsl engine as that is implementation specfic, but I can
> show you
> how to do it in Java xan Xalan if you want?
> 
> Amir
> 
> -----Original Message-----
> From: abradoom [mailto:thiabek@xxxxxxxxxxx]
> Sent: 05 September 2002 16:38
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  How to pass variable from one file to xsl file
> 
> 
> hello all
> I want to know if there is any way by which i can pass a variable from
> another file into my stylesheet(.xsl file).
> I am using sablotron processor of php for xslt transformations.
> I have generated a sessionid for each user and I can pass this from one
> php page to other by simply session_id() function.
> What i want to know if i want to pass that to xsl file how can i do
> that.
> In my xsl file in some matches i have given  path to some directories
> like in template match ="a" i am putting href=
> "./somedirectory/somefile" or template match="img" 
> src="./somedirectory/imagefile" . 
> I want the value of session id in place of *somedirectory*.
> how can I pass that value.
> thiabek
> 
> 
> 
> -- 
> http://fastmail.fm/ - A fast, anti-spam email service.
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> ------------------------------------------------------------------------------
> This message is intended only for the personal and confidential use of
> the designated recipient(s) named above.  If you are not the intended
> recipient of this message you are hereby notified that any review,
> dissemination, distribution or copying of this message is strictly
> prohibited.  This communication is for information purposes only and
> should not be regarded as an offer to sell or as a solicitation of an
> offer to buy any financial product, an official confirmation of any
> transaction, or as an official statement of Lehman Brothers.  Email
> transmission cannot be guaranteed to be secure or error-free. 
> Therefore, we do not represent that this information is complete or
> accurate and it should not be relied upon as such.  All information is
> subject to change without notice.
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
-- 
The fastest email on the Internet! 
http://fastmail.fm - Choose from over 50 domains or use your own

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.