This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: external parameters like DOS Command


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]