This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: external parameters like DOS Command
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: external parameters like DOS Command
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 17 Jul 2000 10:03:53 +0100
- Reply-To: xsl-list at mulberrytech dot com
> Question: Is it possible to use a stylesheet like a DOS command?
> Explanation: I use Saxon to transform XML into HTML, but I
> want to produce
> HTML regarding parameters that I want to send to the
> stylesheet like a DOS
> command. How to do that ?
If you declare a global parameter in the stylesheet, e.g.
<xsl:param name="foo"/>
Then you can set it from the Saxon command line:
saxon source.xml style.xsl foo=bar
Other XSLT processors have similar (though not identical) facilities in
their command-line interfaces.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list