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

Re: Default values for options

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Fri, 17 Aug 2007 12:49:28 +0100
To: Norman Walsh <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org
Message-ID: <f5bhcmy9y9j.fsf@hildegard.inf.ed.ac.uk>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Norman Walsh writes:

> 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.

What?  Should be just like XML attributes.  The pipeline is fine,
attempts to retrieve the value of the option *must* produce either a
distinguished value, e.g. null, or an exception (which *should* be
distinct from the exception you get if you try to access an undeclared
option).

The whole point about optional attributes w/o a default is that you
can't conclude anything from a failure to supply them.

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFGxYtIkjnJixAXWBoRAtiyAKCCIGO0s1CXDlAIP7UrosmNuy5y2ACfYZg8
gmWCNzejK53vukTzRwFznJc=
=C8jd
-----END PGP SIGNATURE-----
Received on Friday, 17 August 2007 11:49:46 GMT

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