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

Re: xt and xalan also? (was RE: saxon params)

Subject: Re: xt and xalan also? (was RE: saxon params)
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 6 Jun 2000 11:31:54 -0600 (MDT)
stylesheet parameter saxon
> > The correct delimiter is space, for example
> > java com.icl.saxon.StyleSheet a.xml b.xsl p=12 q=24
> 
> My next question is whether one can also pass parameters in this manner
> when using XT or XALAN. ... ?

The answers are documented on the web.

http://www.jclark.com/xml/xt.html, under Usage, says:

java -Dcom.jclark.xsl.sax.parser=your-sax-driver com.jclark.xsl.sax.Driver source stylesheet result name=value...

The name=value arguments are optional and specify parameter names and
values; they can occur in any order with respect to the other arguments.
They will be ignored unless the stylesheet contains a corresponding
top-level xsl:param element. The value of the parameter will be of type
string.


http://xml.apache.org/xalan/commandline.html says:

java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT foo.out 

The command line utility can take the following flags and arguments:

 [a list that includes
  -PARAM name expression (Set a stylesheet parameter)]

"To set stylesheet parameters from the command line, use -PARAM name
expression. If you want to set the parameter to a string value, enclose
the string in single quotes (') to make it an expression."

There's no indication of whether you can use multiple -PARAM arguments
though.

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.