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

What is the correct terminology for a chain of base simpleTypes versus a chain of constructed-from simpleTypes?

From: Costello, Roger L. <costello@mitre.org>
Date: Tue, 21 Jun 2011 08:31:02 -0400
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB500599AB40FB@IMCMBX3.MITRE.ORG>
Hi Folks,

Consider these two simpleTypes:

    <xsd:simpleType name="LotteryNumbers">
        <xsd:restriction>
            <xsd:simpleType>
                <xsd:list itemType="OneToNinetyNine"/>
            </xsd:simpleType>
            <xsd:length value="6"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="OneToNinetyNine">
        <xsd:restriction base="xsd:positiveInteger">
            <xsd:maxInclusive value="99"/>
        </xsd:restriction>
    </xsd:simpleType>

The chain of base types is:

LotteryNumbers --> the anonymous list simpleType --> OneToNintyNine

The chain of constructed from types is:

LotteryNumbers --> OneToNintyNine

What is the correct terminology for the two chains?

Is the second one is called the "type definition chain" or the "constructed type definition chain"?

Is the first one called the "base type definition chain"?

/Roger
Received on Tuesday, 21 June 2011 12:31:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 21 June 2011 12:31:40 GMT