[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: variable from file
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Tue, 13 Aug 2002 13:47:38 +0000
hi
You can pass the session id as a parameter to the XSl and then make use of that parameter to create a folder(with sessionid as its name).. is there any file that you want to put in that folder?
Because the following is what i think can be done..
Redirect Function outputs a file (in a given directory)..
as follows


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:write-to-file="org.apache.xalan.xslt.extensions.Redirect"
extension-element-prefixes="write-to-file"
version="1.0">
<xsl:param name="dirname"/>
<xsl:template match="/">
<xsl:variable name="file" select="concat($dirname,'MyFile','.txt')"/>
<write-to-file:write select="$file">
<xsl:value-of select="'file-contents'"/>
</write-to-file:write>
</xsl:template>
</xsl:stylesheet>


and you can pass the session id as a parameter to the XSL
The output will be dirname/filename.txt

This is what i think can be done..
Hope This helps
Vasu

From: "alex  ek" <alexek@xxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  variable from file
Date: 13 Aug 2002 11:37:46 -0000

I am using session id of user when he tries to access a particular site.
What i want to know is it possible i can get that session id in stylesheet.
I have an php file in which user enters the URL.There i am getting session id by session_id function of php.
Then it goes to next php file where i am converting it with xslt processor of php(sablotron).As they are php file session id is same in both file.
I want to create different folders for different users in xslt stylesheet giving them the name which is there sesion id like c45302e81bc584897ae384887892063b.
is it possible .
alexek
__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com. Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/



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




_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com



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



Current Thread
  • variable from file
    • alex ek - Tue, 13 Aug 2002 07:37:28 -0400 (EDT)
      • <Possible follow-ups>
      • alex ek - Tue, 13 Aug 2002 07:37:37 -0400 (EDT)
      • Vasu Chakkera - Tue, 13 Aug 2002 09:47:31 -0400 (EDT) <=
      • alex ek - Fri, 16 Aug 2002 11:35:58 -0400 (EDT)
      • Vasu Chakkera - Fri, 16 Aug 2002 12:32:17 -0400 (EDT)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member