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:localAttributeType
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 | ||
ref | [0..1] | xsd:QName | ||
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 |
Used in
- Group xsd:attrDecls
- Group xsd:complexTypeModel via reference to xsd:attrDecls
- Type xsd:complexType via reference to xsd:complexTypeModel
- Type xsd:complexRestrictionType via reference to xsd:attrDecls (Element xsd:restriction)
- 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: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> <xsd:simpleType>... </xsd:simpleType> <xsd:minExclusive value="any text content">... </xsd:minExclusive> </xsd:restriction> </xsd:simpleType> </xsd:attribute>