This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Passing paramater in Xalan 1.2
- To: xsl-list at mulberrytech dot com
- Subject: Re: Passing paramater in Xalan 1.2
- From: Gary L Peskin <garyp at firstech dot com>
- Date: Mon, 13 Nov 2000 08:10:34 -0800
- Organization: The Firstech Corporation
- References: <20001113130600.21162.qmail@mellon.com>
- Reply-To: xsl-list at mulberrytech dot com
Bassi Suk wrote:
>
> I currently need to pass a parameter into Xalan, and then need to reference
> it in the XSLT stylesheet.
>
> For example:
>
> java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT foo.out
> -PARAM myParam "hello world"
>
> Is the above line correct? What is the syntax for getting the myParam value
> back in the stylesheet?
Bassi --
"hello world" will be interpreted as an XPath expression and an illegal
one at that. Try
-PARAM myParam "'hello world'"
Gary
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list