xs:attribute

Complex Type Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
default xs:string optional
fixed xs:string optional
form xs:formChoice optional
id xs:ID optional
name xs:NCName optional
ref xs:QName optional
type xs:QName optional
use xs:null optional optional
Wildcard: ANY attribute from ANY namespace OTHER than 'http://www.w3.org/2001/XMLSchema'

Used By

Source

<xs:complexType name="attribute">
  <xs:complexContent>
    <xs:extension base="xs:annotated">
      <xs:sequence>
        <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType"/>
      </xs:sequence>
      <xs:attributeGroup ref="xs:defRef"/>
      <xs:attribute name="type" type="xs:QName"/>
      <xs:attribute name="use" use="optional" default="optional">
        <xs:simpleType>
          <xs:restriction base="xs:NMTOKEN">
            <xs:enumeration value="prohibited"/>
            <xs:enumeration value="optional"/>
            <xs:enumeration value="required"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="default" type="xs:string"/>
      <xs:attribute name="fixed" type="xs:string"/>
      <xs:attribute name="form" type="xs:formChoice"/>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>