Re: Default values for options

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 UTC