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.


Jeni Tennison
Received on Friday, 17 August 2007 18:30:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:44 UTC