This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Environment variable
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Environment variable
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 9 Oct 2001 15:41:26 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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