Subject: RE: Environment variable
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 9 Oct 2001 15:41:26 +0100
|
> I have a question. Is there any way to make a file .xsl to get
> environment variable and use then.
> I have to make an xsl that process an xml and then
> generate a html
> string and then send it via email to client. This html have a link to
> gif and some href. This gif and href will change from week to
> week, so I
> do not want to change the xsl every week.
You can pass parameters to a stylesheet. It's suprising how many people
don't know this. Use <xsl:param/> in the stylesheet, and the
processor-specific API for setting the parameters from the calling
application or command line.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|