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

Re: Error...

Subject: Re: Error...
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 24 May 2000 17:37:33 -0600 (MDT)
Re: Error...
> 	However I have tried to create a script file which is like
> follows (called it xmlxsl):
> 
> java -classpath
> .:/home/cnc99r/xml/XML4J_3_0_1/xerces.jar:/home/cnc99r/xml/lotusxsl_1_0_0/lotusxsl.jar:/home/cnc99r/xml/lotusxsl_1_0_0/xalan.jar
> org.apache.xalan.xslt.Process $*
> 
> 	And run it on the prompt:
> 
> ~~> xmlxsl -in stuffs.xml -xsl stuffs.xsl -param expire "'10 May
> 2000'" -out out1.xml

Here is a simpler example. When you give the shell the command:

   xmlxsl blahblahblah "'foo and bar'"

...the double quotes are removed by the shell, so the 2 arguments are:

   blahblahblah
   'foo and bar'

Your shell script creates a new command to give to the shell:

   java -classpath stuffstuffstuff blahblahblah 'foo and bar'

The shell removes the single quotes when it parses this command.
If you change $* to "$*" it should work, as long as the arguments
never contain double quotes.

And yes, this is off-topic.

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/


 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.