RE: [xsl] passing in XSL parameters using Saxon

Subject: RE: [xsl] passing in XSL parameters using Saxon
From: sara.mitchell@xxxxxxxxx
Date: Thu, 5 Dec 2002 14:49:25 -0500
I've experienced a problem like this and finally tracked it 
down to spaces in directory names. This was on a Windows
box. You may need to put quotes around the full file name. 

Sara

> -----Original Message-----
> From: Alistair Power [mailto:alistair.power@xxxxxxxxx]
> Sent: Thursday, December 05, 2002 7:55 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] passing in XSL parameters using Saxon
> 
> 
> Hi There,
> hopefully a simple one - can you see anything wrong with this 
> syntax? It's
> driving me up the wall! I am trying to do a command line 
> transformation
> using Saxon, passing in a parameter of a filename, and the 
> Saxon parser
> states I am using a bad param=value pair, yet as far as I can see, my
> command line is using the correct syntax. I am in the correct 
> dir, with the
> correct filenames on the command line (in windows).
> 
> 
> my input is essentially -o outputfile.xsl xmlToTransformOn.xml
> Stylesheet.xsl param=value as per the instructions with Saxon.
> See below cut and pasted directly unedited from the dos prompt):
> 
> -----------cut n'paste from DOS--------------------------
> java -jar C:\java\saxon7-1\saxon7.jar -o test_transformer.xsl
> disch-template.xml generator.xsl mapping-file=mappings-discharge.xml
> Bad param=value pair on command line
> SAXON
> Usage:  java net.sf.saxon.Transform [options] source-doc style-doc
> {param=value}...
> Options:
>   -a              Use xml-stylesheet PI, not style-doc argument
>   -ds             Use standard tree data structure
>   -dt             Use tinytree data structure (default)
>   -o filename     Send output to named file or directory
>   -m classname    Use specified Emitter class for xsl:message output
>   -r classname    Use specified URIResolver class
>   -t              Display version and timing information
>   -T              Set standard TraceListener
>   -TL classname   Set a specific TraceListener
>   -u              Names are URLs not filenames
>   -w0             Recover silently from recoverable errors
>   -w1             Report recoverable errors and continue (default)
>   -w2             Treat recoverable errors as fatal
>   -x classname    Use specified SAX parser for source file
>   -y classname    Use specified SAX parser for stylesheet
>   -?              Display this message
> ---------------end cut n' paste---------------------
> 
> Am I doing anything blatently wrong? :) Thanks for your comments,
> Alistair
> 
> Alistair Power
> Research Consultant
> 
> ***********************************************
> CSW Group Ltd
> 4240 Nash Court
> Oxford Business Park South
> Oxford
> OX4 2RU
> Tel: +44/0 1865 337400  Fax: +44/0 1865 337433
> Web: http://www.csw.co.uk
> 
> Delivering value to our customers by deploying innovative, web-based,
> products and solutions for the integration of processes, data 
> and knowledge
> ***********************************************
> CSW's XML Summer School 27th - 31st July 2003
> Wadham College, Oxford
> Further information: http://www.xmlsummerschool.com
> ***********************************************
> Legal Disclaimer: http://www.csw.co.uk/disclaimer.htm
> ***********************************************
> 
> 
> 
>  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