[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: external parameters like DOS Command


Subject: RE: external parameters like DOS Command
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 17 Jul 2000 10:03:53 +0100

> 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



Current Thread
Keywords