xsl-list
[Top] [All Lists]

RE: passing in XSL parameters using Saxon

2002-12-05 12:18:36
Try putting the param=value in quotes (as "param=value" or
param="value"). Different shell languages have different rules about the
characters allowed in a single parameter, and the rules aren't well
documented.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Alistair Power
Sent: 05 December 2002 15:55
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>