Sure. Declare
<xsl:param name="x" as="xs:integer" required="yes"/>
at the top level of a (2.0) stylesheet
and then invoke Saxon as
java -jar saxon8.jar source.xml style.xsl x=17
and then access the variable $x in any XPath expression.
(Or similarly in XSLT 1.0, but then the "as" and "required" attributes are
not available).
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: dmitrik(_at_)mindspring(_dot_)com
[mailto:dmitrik(_at_)mindspring(_dot_)com]
Sent: 08 January 2005 01:04
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] how to pass in saxon command line parameters
for use in xsl file
Is it possible to pass in a command line parameter with saxon
and then
use the value passed in within the .xsl file? Any examples of
how to do this?
Need to pass in a number and use it in calculation within xsl.
Thanks,
Dmitri
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--