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

RE: get parameter from xalan command line

Subject: RE: get parameter from xalan command line
From: "Crowers, Steve" <scrowers@xxxxxxxxxxxx>
Date: Fri, 21 Sep 2001 10:24:21 -0400
xalan command line param
This is just nit-picking, but remember that the param name on the command
line ("testParam") must match the declared name (and subsequent usage of the
variable) in the stylesheet (not <xsl:param name="textParam"/>, but
<xsl:param name="testParam"/> and <xsl:value-of select="$testParam"/>)



Steve Crowers 
 

"The good Lord sets definite limits on man's wisdom but sets no limits on
his stupidity -- and that's just not fair." --Konrad Adenauer, German
Chancellor 



-----Original Message-----
From: Michael Kay [mailto:mhkay@xxxxxxxxxxxx]
Sent: Friday, September 21, 2001 4:03 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  get parameter from xalan command line


>   I use Xalan command base to translate a XML file to another
> xml file with a XSL file, and i
> pass in 1 parameter to the xsl, the command is like:
>
>   C:\ java -jar xalan.jar -IN Testing.xml -XSL testing.xsl
> -PARAM testParam testValue -OUT
> Testing4.xml
>
> and my problem is how to get parameter testParam and the
> value ( taht is textValue ) from the
> command line ? I tried to use <xsl:value-of
> select="$textParam" /> in my xsl file, but error
> occur : variableReference given for variable out of context
> or without definition.

You've done two of the three things you need to to; the third is to declare
the parameter in your stylesheet, with a top-level declaration:

<xsl:param name="textParam"/>

Mike Kay


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

 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.