W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > August 2007

Re: Default values for options

From: Jeni Tennison <jeni@jenitennison.com>
Date: Fri, 17 Aug 2007 08:21:42 +0100
Message-ID: <46C54C86.4000500@jenitennison.com>
To: public-xml-processing-model-wg@w3.org

Norman Walsh wrote:
> / Innovimax SARL <innovimax@gmail.com> was heard to say:
> | Does it mean that for all boolean option that are not required, their
> | default value is false ?
> 
> I think that happens to be the case, but not because there's a global
> rule about it.

I think that it means that options that are expected to have boolean 
values will raise an error if no value is supplied (because an empty 
string is not a legal xs:boolean value -- it's not 'true', 'false', '0' 
or '1'). So boolean options should either be explicitly required or have 
a default value specified.

Cheers,

Jeni
-- 
Jeni Tennison
http://www.jenitennison.com
Received on Friday, 17 August 2007 18:30:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:54 GMT