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:attribute
Properties: Local, Qualified
Content
- Sequence [1..1]
- xsd:annotation [0..1]
- xsd:simpleType [0..1]
from type xsd:annotated
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
Any attribute | [0..*] | Namespace: ##other, Process Contents: lax | from type xsd:openAttrs | |
id | [0..1] | xsd:ID | from type xsd:annotated | |
name | [0..1] | xsd:NCName | from group xsd:defRef | |
ref | [0..1] | xsd:QName | from group xsd:defRef | |
type | [0..1] | xsd:QName | ||
use | [0..1] | Anonymous | Default value is "optional". | |
default | [0..1] | xsd:string | ||
fixed | [0..1] | xsd:string | ||
form | [0..1] | xsd:formChoice | ||
targetNamespace | [0..1] | xsd:anyURI | ||
inheritable | [0..1] | xsd:boolean |
Used in
- Group xsd:attrDecls
- Group xsd:complexTypeModel via reference to xsd:attrDecls
- Type xsd:attributeGroup via reference to xsd:attrDecls
- Type xsd:complexRestrictionType via reference to xsd:attrDecls (Element xsd:restriction)
- Type xsd:complexType via reference to xsd:complexTypeModel
- Type xsd:extensionType via reference to xsd:attrDecls (Element xsd:extension)
- Type xsd:localComplexType via reference to xsd:complexTypeModel (Element xsd:complexType)
- Type xsd:namedAttributeGroup via reference to xsd:attrDecls (Element xsd:attributeGroup)
- Type xsd:restrictionType via reference to xsd:attrDecls
- Type xsd:simpleExtensionType via reference to xsd:attrDecls (Element xsd:extension)
- Type xsd:simpleRestrictionType via reference to xsd:attrDecls (Element xsd:restriction)
- Type xsd:topLevelComplexType via reference to xsd:complexTypeModel (Element xsd:complexType)
Sample instance
<xsd:attribute> <xsd:simpleType> <xsd:restriction base="QName"> <xsd:simpleType>... </xsd:simpleType> <xsd:minExclusive value="any text content">... </xsd:minExclusive> </xsd:restriction> </xsd:simpleType> </xsd:attribute>