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

Re: Fixed values with element-only content

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Tue, 27 Apr 2004 15:51:18 +0100
To: "Michael Kay" <mhk@mhk.me.uk>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5b7jw1lbix.fsf@erasmus.inf.ed.ac.uk>

"Michael Kay" <mhk@mhk.me.uk> writes:

>> > Am I right in thinking that if a non-empty fixed value is defined
>> > for an element with element-only content, then (a) the schema is
>> > valid
>> 
>> No -- this is ruled out in clause 2 of Schema Component Constraint:
>> Element Declaration Properties Correct, which, via Schema Component
>> Constraint: Element Default Valid (Immediate) requires simple or
>> emptiable mixed content for the type of the element.
>
> It would be helpful if SCC Element Default Valid (Immediate) made it clear
> that it applies to the fixed value as well as the default value.

Yes, this could certainly be worded more clearly -- either the word
'default' should be removed from Schema Component Constraint: Element
Default Valid (Immediate), or *valid* should be changed to *valid as a
default value* in its invocation in clause 2 of Schema Component Constraint:
Element Declaration Properties Correct.

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 Tuesday, 27 April 2004 10:52:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:11 UTC