W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2009

Re: Detecting unbound options

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 27 May 2009 07:33:52 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m24ov64w67.fsf@nwalsh.com>
mozer <xmlizer@gmail.com> writes:
> Are you suggesting that we eventually end up needing a construct to
> test if a variable is bounded ?

No. After more thought, I'm suggesting that the concept of unbound
options is a mistake. As a (SIGNIFICANT) convenience to users, and
consistent with languages like XSLT, I think an option with no binding
should get a default value.

Since we've decided that variables and parameters must be strings
in XProc 1.0, I propose the empty string as that default value.

Effectively "" becomes the default default for options.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | He who fails to become a giant need not
http://nwalsh.com/            | remain content with being a
                              | dwarf.--Ernest Bramah

Received on Wednesday, 27 May 2009 11:34:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 May 2009 11:34:33 GMT