[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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>
_________________________________________________________________
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
Re: [xsl] variable from file
Subject: Re: [xsl] 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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] variable from file, alex ek | Thread | Re: [xsl] variable from file, alex ek |
RE: [xsl] for-each question, Holmberg Rick-ra0119 | Date | RE: [xsl] Spelling checking templat, Matthew L. Avizinis |
Month |