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

RE: complexType derivation method

From: Lemmin, Harald <Harald.Lemmin@softwareag.com>
Date: Thu, 10 Jan 2002 11:44:11 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210601E3A87D@daemsg02.software-ag.de>
To: xmlschema-dev@w3.org

just a question inbetween:

The example from ht was:

<xs:complexType name="t1">
        <xs:extension base="xs:string">                     
            <xs:attribute name="x" type="xs:integer"/>      

<xs:complexType name="t4">                    
      <xs:restriction base="t1" >             
            <xs:restriction base="xs:token">
             <xs:pattern value=".*a.*"/>

So what does type t4 expresses? Is it:
- t4 permits the attribute with name "x" (as inherited from t1)
- The content of t4 can be of type xs:token and has to match the pattern.
  Is this a valid restriction to the base of t1, because token restricts
string and pattern is 
  a valid restriction of the value space?

Am I correct?

What confuses me is the local usage of the simpleType and the introduction
of a new base type.

Received on Thursday, 10 January 2002 05:44:16 UTC

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