Project

Profile

Help

Command Line syntax

Added by Anonymous about 19 years ago

Legacy ID: #3144306 Legacy Poster: Curtis (cdfisher07)

I'm trying to test my new and improved xsl and not having much luck with this line: java -Xmx512m -jar c:\saxon\saxon8.jar -it main C:\Saxon\projects\schedule.xml C:\Saxon\projects\login.xsl uid=cdfisher pwd=Buellx1 > C:\Saxon\projects\test.txt I'm getting the following error: C:\Saxon>timetest 13:21:41.24 Bad param=value pair on command line Saxon 8.3 from Saxonica Thanks... Curtis Fisher


Replies (3)

Please register to reply

RE: Command Line syntax - Added by Anonymous about 19 years ago

Legacy ID: #3144415 Legacy Poster: Michael Kay (mhkay)

The Saxon command line doesn't allow you to specify both an initial template and a principal source document. If you use the -it option, the source document must be omitted. This restriction isn't present in the API. If you want you can supply the source document as a parameter to the stylesheet using the rarely-seen option +param=source.xml - the "+" sign indicates that the value will be treated as a file name, the contents will be parsed, and the resulting document node will be passed as the value of parameter "param". Michael Kay

RE: Command Line syntax - Added by Anonymous about 19 years ago

Legacy ID: #3144448 Legacy Poster: Curtis (cdfisher07)

Thanks again!

RE: Command Line syntax - Added by Anonymous over 17 years ago

Legacy ID: #4207927 Legacy Poster: CRA (samurai40k)

Sorry to resurrect something so old, but I'm having a problem with this. I'm using Saxon 8.6.1 with a Java command line in a batch file to run a transformation. The command line in the batch file looks like this: java -Xms1024m -Xmx1024m -DentityExpansionLimit=2048000 net.sf.saxon.Transform -novw -o C:\work\profiling\data\OUTPUT.xml C:\work\profiling\data\INPUT-1.xml C:\work\profiling\data\reorder.xsl +PRD-DOC=INPUT-2.xml What I want to do is run a transformation on the INPUT-1.xml file using the INPUT-2.xml file as a reference document. The nodes in the INPUT-1 and INPUT-2 files are the same, but they are in different sequential orders. The goal is to re-order the nodes in INPUT-1.xml so that they are in the same order as INPUT-2.xml, so I need that file as a reference. In my XSL file I have a line that looks like this <xsl:variable name="PRD-DOC"/> that I want to use to store the INPUT-2.xml document in. I am not a command line or Java guru so I'm sure this is probably a noob question but since as you said this method of parameter usage is rare I haven't been able to find many good examples. Thanks in advance for any help.

    (1-3/3)

    Please register to reply