[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: how to pass in saxon command line parameters for u

Subject: RE: how to pass in saxon command line parameters for use in xsl file
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 8 Jan 2005 09:17:23 -0000
saxon command line parameters
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@xxxxxxxxxxxxxx [mailto:dmitrik@xxxxxxxxxxxxxx] 
> Sent: 08 January 2005 01:04
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.