xs:restriction

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
base xs:QName optional
id xs:ID optional
Wildcard: ANY attribute from ANY namespace OTHER than 'http://www.w3.org/2001/XMLSchema'

Used By

Element Group xs:simpleDerivation

Source

<xs:element name="restriction" id="restriction">
  <xs:complexType>
    <xs:annotation>
      <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-restriction">base attribute and simpleType child are mutually exclusive, but one or other is required</xs:documentation>
    </xs:annotation>
    <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>

Sample