W3C home > Mailing lists > Public > xproc-dev@w3.org > July 2014

Re: Setting options on command line (Calabash)

From: Gioele Barabucci <gioele@svario.it>
Date: Wed, 02 Jul 2014 16:00:16 +0200
Message-ID: <53B41070.1050001@svario.it>
To: Nic Gibson <nicg@corbas.co.uk>
CC: xproc-dev@w3.org
Am 02.07.2014 15:46, schrieb Nic Gibson:
> Hi Giole
> This catches me on a regular basis. The sequence of arguments to calabash is
> inputs/options xproc.script.xpl options
> so you wanted something like
> java -jar calabash.jar -isource=doc.xml  conv.xpl output-url=out1.xml

Hi Nic,

this is one of the things that I tried. But you drove me to try again 
and I have found out what the problem was.

I used

     <p:option name="output-url" select="'default.xml'"/>

         <p:with-option name="href" select="$output-url"/>

plus `result-url=doc.xml` instead of the previous

     <p:output port="result">

plus `-oresult=doc.xml`.

The difference is in how the `doc.xml` path is resolved. In the first 
case it is relative to the pipeline URL, in the second case it is 
relative to the current directory of Calabash.

Calabash was saving the file, just in the "wrong" directory.


Gioele Barabucci <gioele@svario.it>
Received on Wednesday, 2 July 2014 14:00:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:17:20 UTC