W3C home > Mailing lists > Public > xproc-dev@w3.org > March 2010

empty arg in p:exec

From: Romain Deltour <rdeltour@gmail.com>
Date: Fri, 19 Mar 2010 09:59:42 +0100
Message-Id: <B080EFD6-1695-4397-8BE7-67A1C97DDCA9@gmail.com>
To: xproc-dev@w3.org

I recently came up against a quite puzzling issue... What would you  
expect the following step to do in Calabash ?

<p:exec command="tidy" source-is-xml="false" result-is-xml="true" wrap- 
	<p:with-option name="args" select="'-asxml --quiet yes  --show- 
warnings no'"/>

It actually fails with: Error: Can't open ""

The issue is caused by the double space between "-quiet yes" and "- 
show-warnings no". The default args separator is a space, which means  
that the arg list computed by Calabash is [-asxml,--quiet,yes,,--show- 
warnings,no]. It took me a while to get over this one!

It might be better to ignore empty parameters, or do you think it's a  
worthy feature rather than a bug ?

Received on Friday, 19 March 2010 09:00:18 UTC

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