Re: Question about

"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:

<snip/>

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.

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]

Received on Sunday, 18 January 2004 06:08:32 UTC