W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2004

Re: Question about

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Sun, 18 Jan 2004 11:02:54 +0000
To: <john.madden@duke.edu>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5b8yk5ldsx.fsf@erasmus.inf.ed.ac.uk>

"John F. Madden" <john.madden@duke.edu> writes:

> So, let me ask a design workaround follow-up: if I do want to use a
> multifield key, but also want to permit the instance author to omit
> specification of a value of one of the fields in either a key or keyref
> element, then can I "simulate" the above behavior by specifying some
> arbitrary default for the fields, e.g., changing by type declarations to:


Yes, that should work.

> And second, is it possible to make the default attribute equal to a
> length-zero string (e.g. default=""), or would this just be seen as an emtpy
> node?

That should also work -- the empty string is a string value, not a
missing attribute.

 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]
Received on Sunday, 18 January 2004 06:08:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:04 UTC