W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2011

Re: What is this simpleType's "base" type?

From: Michael Kay <mike@saxonica.com>
Date: Fri, 17 Jun 2011 23:39:11 +0100
Message-ID: <4DFBD78F.2080204@saxonica.com>
To: xmlschema-dev@w3.org
On 17/06/2011 23:10, Costello, Roger L. wrote:
> Hi Folks,
>
> This simpleType, LotteryNumbers, specifies a list of exactly 6 OneToNintyNine values:
>
>      <xsd:simpleType name="LotteryNumbers">
>          <xsd:restriction>
>              <xsd:simpleType>
>                  <xsd:list itemType="OneToNinetyNine"/>
>              </xsd:simpleType>
>              <xsd:length value="6"/>
>          </xsd:restriction>
>      </xsd:simpleType>
>
>
> Consider again the LotteryNumbers simpleType. What is its "base" type? Is it the (anonymous) list type:
>
>              <xsd:simpleType>
>                  <xsd:list itemType="OneToNinetyNine"/>
>              </xsd:simpleType>
>

Yes,

Michael Kay
Saxonica
Received on Friday, 17 June 2011 22:39:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 17 June 2011 22:39:36 GMT