[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: variable from file
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 _________________________________________________________________ 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|