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
Hi,

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- 
result-lines="false">
	<p:with-option name="args" select="'-asxml --quiet yes  --show- 
warnings no'"/>
</p:exec>

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 ?

BR,
Romain.
Received on Friday, 19 March 2010 09:00:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 19 March 2010 09:00:19 GMT