xsd:attribute
Element information
Namespace: http://www.w3.org/2001/XMLSchema
Schema document: XMLSchema.xsd
Other elements with the same name: xsd:attribute
Type: xsd:topLevelAttribute
Properties: Global, Qualified, ID: attribute
Content
- Sequence [1..1]
- xsd:annotation [0..1]
- xsd:simpleType [0..1]
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
id | [0..1] | xsd:ID | from type xsd:annotated | |
type | [0..1] | xsd:QName | from type xsd:attribute | |
default | [0..1] | xsd:string | from type xsd:attribute | |
fixed | [0..1] | xsd:string | from type xsd:attribute | |
name | [1..1] | xsd:NCName | ||
inheritable | [0..1] | xsd:boolean | ||
Any attribute | [0..*] | Namespace: ##other, Process Contents: lax |
Used in
- Anonymous type of element xsd:override via reference to xsd:schemaTop
- Anonymous type of element xsd:schema via reference to xsd:schemaTop
- Group xsd:schemaTop
Sample instance
<xsd:attribute name="NCName"> <xsd:simpleType> <xsd:restriction base="QName"> <xsd:simpleType>... </xsd:simpleType> <xsd:minExclusive value="any text content">... </xsd:minExclusive> </xsd:restriction> </xsd:simpleType> </xsd:attribute>