Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Data Range"
(→Definition) |
(→Definition) |
||
Line 7: | Line 7: | ||
** an XML Schema type (e.g. String) | ** an XML Schema type (e.g. String) | ||
** a specialization of a base XML Schema type (e.g. String) | ** a specialization of a base XML Schema type (e.g. String) | ||
− | * An [[Attribute Value Datatype]] | + | * An [[Attribute Value Datatype]] MAY include a set of constraints on its value(s) including: |
** Value must be one of {"red", "green", "blue"} | ** Value must be one of {"red", "green", "blue"} | ||
** Syntax constraints (e.g. regular expression) | ** Syntax constraints (e.g. regular expression) |
Revision as of 21:32, 7 February 2008
Introduction
This page describes the concept of an Attribute Value Datatype.
Definition
- The datatype of a value of an Attribute
- An Attribute Value Datatype is EITHER
- an XML Schema type (e.g. String)
- a specialization of a base XML Schema type (e.g. String)
- An Attribute Value Datatype MAY include a set of constraints on its value(s) including:
- Value must be one of {"red", "green", "blue"}
- Syntax constraints (e.g. regular expression)
- ranges (e.g. less than 5, more than 100)
- matching rules
<to be completed>
Examples
- An Attribute might have a value whose Attribute Value Datatype was (XML Schema) string
- An Attribute might have a value whose Attribute Value Datatype was defined in the Contexts schema as "telephone number". This telephone number type might have a base type of (XML Schema) string, but might also have an XML Schema pattern restriction that constrained its syntax to be value in North America for auto-dialing (e.g. it is of the form (NNN)-NNN-NNNN)