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

Re: Passing paramater in Xalan 1.2

Subject: Re: Passing paramater in Xalan 1.2
From: Gary L Peskin <garyp@xxxxxxxxxxxx>
Date: Mon, 13 Nov 2000 08:10:34 -0800
Re: Passing paramater in Xalan 1.2
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


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.