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

Re: passing variables to a stylesheet

Subject: Re: passing variables to a stylesheet
From: Eric Smith <Eric.Smith@xxxxxxxxxxxx>
Date: Sat, 13 Oct 2001 22:07:14 +0200
Re:  passing variables to a stylesheet
According to cutlass on Mon, Sep 24, 2001 at 01:33:52PM +0100:
> most command line invocations provide a way of passing params; though they
> are slightly different with each parser.
> 
> a command line invocation using instant saxon with 2 params p1.
> 
> saxon source.xml source.xsl p1="aaa"
> 

Could someone tell me how they pass parameters to their stylesheets
using xalan.

The docs say:
[-PARAM name expression (Set a stylesheet parameter)]

So I use org.apache.xalan.xslt.Process -PARAM someconditon 1 -IN some.xml
-XSL some .xsl

But that gives the error:
 org.apache.xml.utils.WrappedRuntimeException: Could not find
variable with the name of somecondition

Do they mean variable when they say set a parameter, am I missing
something here?

I want to do form the commandline the same thing as:
<xsl:variable name="somecondition" select="1"/>

thanx
-- 
Eric Smith - See mail headers for processors used

 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.