- From: Costello, Roger L. <costello@mitre.org>
- Date: Fri, 3 Jun 2011 12:46:27 -0400
- To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Hi Folks,
Consider this simpleType:
<simpleType name="BostonAreaSurfaceElevation">
<restriction base="EarthSurfaceElevation">
<maxInclusive value="120"/>
</restriction>
</simpleType>
It restricts this simpleType:
<simpleType name="EarthSurfaceElevation">
<restriction base="integer">
<minInclusive value="-1290"/>
<maxInclusive value="29035"/>
</restriction>
</simpleType>
Analyzing this "simpleType dependency chain" we see that BostonAreaSurfaceElevation is an integer simpleType and is constrained as follows:
- The minInclusive value is -1290
- The maxInclusive value is 120
This example is very simple. In general, a simpleType dependency chain may be long (A restricts B which restricts C which restricts B etc.) and determining the constraints on a simpleType could be quite involved.
What verb would you use to describe the determination of constraints on a simpleType?
/Roger
Received on Friday, 3 June 2011 16:46:56 UTC