a base type definition and a variety list

Hello,

   I'm trying to understand the fix to XML Schema Structures at errata
document.   In  particular  E1-22  Error  and  its  "Schema  Component
Constraint: Derivation Valid (Restriction, Simple)" subpart.

   I  don't  understand  the  following.  The  subpart  2.3.1  of  the
paragraph  2  (If  the {variety} is list...) states "If the {base type
definition}  is  the  ·simple  ur-type  definition·,  then  all of the
following must be true:"

   2.3.1.1  The {final} of the {item type definition} must not contain
list.
   2.3.1.2   The   {facets}   must   only contain the whiteSpace facet
component.

   I  cannot  devise an example of this. If the {base type definition}
is  the  ·simple  ur-type  definition·,  then we have something like:

<simpleType name="ns1:someType1">
   <list itemType="string"/>
</simpleType>

the  2.3.1.2  is not applicable. We have empty {facets}. And is this a
restriction at all? I don't know I just make an assumption.


   On the other hand if we have:
   
<simpleType name="ns1:someType2">
   <restriction base="ns1:someType1">
      <length value="10"/>
   </restriction>
</simpleType>

then  the  {variety}  is  list  but  the {base type definition} is not
·simple  ur-type  definition· and 2.3.1 does not apply at all.

   As  far  as  I  understood  if  we have {variety} equal to list and
"Schema  Component Constraint: Derivation Valid (Restriction, Simple)"
is   only   applicable   to   the   <restriction>  alternative  within
<simpleType>  then  the  {base  type  definition}  cannot be a ·simple
ur-type definition·. Since the later doesn't have {variety}.

   Does  this  all  make  sense?  Or  am  I  mistaken? Then what is my
mistake? Thanks.

-- 
Best regards,
 Vladimir                          mailto:zykov@online.kharkov.ua

Received on Thursday, 19 February 2004 06:14:24 UTC