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

Re: Default values for options

From: Alex Milowski <alex@milowski.org>
Date: Fri, 17 Aug 2007 08:04:35 -0700
Message-ID: <28d56ece0708170804q1bc296die6c639f0348d5cd2@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org

On 8/16/07, Innovimax SARL <innovimax@gmail.com> wrote:
>
> On 8/16/07, Norman Walsh <ndw@nwalsh.com> wrote:
> > Consider:
> >
> > <p:declare-step type="foo:bar">
> >   <p:input ...>
> >   <p:output ...>
> >   <p:option name="fribble"/>
> > </p:declare-step>
> >
> > ...
> >
> > <foo:bar/>
> >
> > What is the value of the fribble option seen by the foo:bar step? Is it the
> > empty string or is this an error (or is there some other choice)?
> >
> > My inclination is to say that it's the empty string.
>
>
> Does it mean that for all boolean option that are not required, their
> default value is false ?

That's a good point.

I think the issue here is that the option 'fribble' has been
specified.  Maybe this
should be an error since you should either specify the option's value
or omit the
p:option element.

-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics
Received on Friday, 17 August 2007 15:04:48 GMT

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