ZVON > References > XML Schema 2001 Reference
index | >> Schema << | DTD

restriction

Go to standard
In: element complexContent
Schema

<xs:element name="restriction" type="xs:complexRestrictionType"/>

In: element simpleContent
Schema

<xs:element name="restriction" type="xs:simpleRestrictionType"/>

In: schema
Schema

<xs:element name="restriction" id="restriction">
     <xs:complexType mixed="false">
          <xs:complexContent>
               <xs:extension base="xs:annotated">
                    <xs:group ref="xs:simpleRestrictionModel"/>
                    <xs:attribute name="base" type="xs:QName" use="optional"/>
               </xs:extension>
          </xs:complexContent>
     </xs:complexType>
</xs:element>


Occurs in Schema Tutorial examples:
Empty element
Restrictions
Multiple restrictions
Element is either a fixed string or an integer
Element can contain a string from an enumerated set
Attribute contains a list of values
Element contains a list of values
Definition of a custom simpleType - temperature must be greater than -273.15
Limiting string length
Limiting the number of decimal places
Limiting both the number of decimal places and total places
String must contain e-mail address
Element contains date
Element represents time duration
xsi:type
definition of a simpleType, target namespace is null
definition of a simpleType, target namespace is not null
Element and type have the same name
Error - simpleType and complexType have the same name
XML Schema - finalDefault attribute
Redefine element
Abstract element, substitutionGroup
Attribute block
Attribute block set to "restriction"
XML Schema - blockDefault attribute
Combining block and blockDefault attributes
Restriction of a sequence
Restriction of a choice
Error in restriction - namespaces in wildcards
"Sequence" from "all"
"Sequence" from "choice"
Element from any