W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2002

Re: union of enumerated values for subtypes

From: Kongyi Zhou <Kongyi.Zhou@oracle.com>
Date: Fri, 01 Mar 2002 12:46:52 -0800
Message-ID: <3C7FE8BB.4E169FC4@oracle.com>
To: Stanley Guan <stanley.guan@oracle.com>
CC: schema-ig w3c <w3c-xml-schema-ig@w3.org>, Schema XML <xmlschema-dev@w3.org>
The spec says the union of facets, which means you need to apply BOTH facets. The effect,
in case of pattern and enumeration, is the same as applying a single facet that has the
intersection of pattern or enumeration values.


Stanley Guan wrote:

>  3.14.3
>    Schema Representation Constraint: Simple Type Restriction (Facets)
>     R - which restrict another simple type definition (B)
>     S - R's {facets}
>     The {facets} of R are the union of S and the {facets} of B, eliminating duplicates.
>     To eliminate duplicates, when a facet of the same kind occurs in both S and the
>     {facets} of B, the one in the {facts} of B is not included, with the exception
>     of enumeration and pattern facets, for which multiple occurrences with distinct
>     values are allowed.
> Is the above description for enumeration wrong?  In the description, it seems to
> me the {facets} of R, a subtype of B, will have more choices (i.e., enumerated
> values) allowed than B does, which is a contradiction to what a subtype means.
> Am I right?
> Thx,
> -Stanley

Received on Friday, 1 March 2002 15:46:47 UTC

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