W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2004

Re: Clarify merge/union of facets

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Fri, 02 Apr 2004 09:47:43 +0100
To: Xan Gregg <xan.gregg@jmp.com>
Cc: www-xml-schema-comments@w3.org, Mary Holstege <holstege@mathling.com>, Dave Peterson <davep@iit.edu>
Message-ID: <f5bwu4yg40g.fsf@erasmus.inf.ed.ac.uk>

Xan Gregg <xan.gregg@jmp.com> writes:

> Definition of {facets} in 4.1.2.1 Derivation by restriction:
>
>    {facets}  The union of the set of Facets (2.4) components
>          resolved to by the facet [children] merged with {facets}
>          from {base type definition}, subject to the Facet
>          Restriction Valid constraints specified in Facets (2.4).
>
> What is being "unioned" and how does "merge" work?  For example, if
> the base has a minLength facet with value 5 and the derived type has a
> minLength child facet of value 7, how many minLength facets are in the
> derived type's facets property?

The (also normative) Schema Component Constraint: Simple Type
Restriction (Facets) in Part 1 [1] has clearer words, but the two
parts of the REC should be better synced, no question.

ht

[1] http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/structures.html#st-restrict-facets
-- 
 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 Friday, 2 April 2004 03:48:57 UTC

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