xsd:schema
Element information
Namespace: http://www.w3.org/2001/XMLSchema
Schema document: XMLSchema.xsd
Type: Anonymous
Properties: Global, Qualified, ID: schema
Content
- Sequence [0..1]
- xsd:defaultOpenContent [1..1]
- xsd:annotation [0..*]
- Sequence [0..*]
- xsd:annotation [0..*]
from group xsd:schemaTop
from group xsd:composition
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
Any attribute | [0..*] | Namespace: ##other, Process Contents: lax | from type xsd:openAttrs | |
targetNamespace | [0..1] | xsd:anyURI | ||
version | [0..1] | xsd:token | ||
finalDefault | [0..1] | xsd:fullDerivationSet | Default value is "". | |
blockDefault | [0..1] | xsd:blockSet | Default value is "". | |
attributeFormDefault | [0..1] | xsd:formChoice | Default value is "unqualified". | |
elementFormDefault | [0..1] | xsd:formChoice | Default value is "unqualified". | |
defaultAttributes | [0..1] | xsd:QName | ||
xpathDefaultNamespace | [0..1] | xsd:xpathDefaultNamespace | Default value is "##local". | |
id | [0..1] | xsd:ID | ||
xml:lang | [0..1] | Anonymous | denotes an attribute whose value is a language code for the natural language of the content of any element; its value is inherited. |
Identity constraints
Type | Name | Selector | Field(s) |
---|---|---|---|
key | element | xs:element | @name |
key | attribute | xs:attribute | @name |
key | type | xs:complexType|xs:simpleType | @name |
key | group | xs:group | @name |
key | attributeGroup | xs:attributeGroup | @name |
key | notation | xs:notation | @name |
unique | identityConstraint | .//xs:key|.//xs:unique|.//xs:keyref | @name |
Sample instance
<xsd:schema> <xsd:include schemaLocation="http://www.example.com/"> </xsd:include> <xsd:defaultOpenContent> <xsd:any> </xsd:any> </xsd:defaultOpenContent> <xsd:simpleType name="NCName"> <xsd:restriction base="QName"> <xsd:simpleType>... </xsd:simpleType> <xsd:minExclusive value="any text content">... </xsd:minExclusive> </xsd:restriction> </xsd:simpleType> </xsd:schema>