xsl-list
[Top] [All Lists]

RE: Variable assignment outside XSL

2003-02-03 13:06:42
Is it possible to assign variables outside of XSL which can 
be accessed from within (during transformation). I need to 
create extra elements in an XML file  to hold values like 
date-time, username, filename(can I get this from 
document()?), servername etc........... depending on when the 
transformation ran and thought I could do it using variables 
(WIN platform). Or is there any suggested method to pass info 
into XSL ?

Look up "stylesheet parameters". You declare them in the stylesheet with
a global <xsl:param> element. The way you set them from outside the
stylesheet depends on the XSLT processor that you're using.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



<Prev in Thread] Current Thread [Next in Thread>