W3C

OASIS-DITA-xml

The document http://docs.oasis-open.org/dita/v1.0.1/schema/xml.xsd has been classified as being possibly an Advanced XML Schema Patterns for Databinding 1.0 conformant document as it only exhibits the following patterns:

Status Nodes Name XPath
basic TargetNamespace .[@targetNamespace]/ (., @targetNamespace)
advanced UnqualifiedLocalElements .[not(@elementFormDefault) or @elementFormDefault = 'unqualified']/ (., @elementFormDefault)
basic UnqualifiedLocalAttributes .[not(@attributeFormDefault) or @attributeFormDefault = 'unqualified']/ (., @attributeFormDefault)
basic DocumentationElement .//xs:annotation/xs:documentation/ (.., ., .//*, .//@*)
basic IdentifierName .//.[matches(@name, "^[A-Za-z_]([A-Za-z0-9_]0 31)$")]/ (@name)
basic GlobalAttribute ./xs:attribute[@name and @type and contains(@type, ":")]/ (., @name, @type)
advanced GlobalAttributeSimpleType ./xs:attribute/xs:simpleType/ (../(., @name), .)
advanced AttributeDefault .//xs:attribute[@default] / (@default)
basic AttributeReference .//xs:attribute[@ref and contains(@ref, ":")]/ (., @ref)
basic AnyURIAttribute .//xs:attribute/@type[resolve-QName(.,..) = xs:QName('xs:anyURI')]
advanced LanguageAttribute .//xs:attribute/@type[resolve-QName(.,..) = xs:QName('xs:language')]
advanced AttributeGroup .//xs:attributeGroup/(.,@name,@ref,xs:attribute)
advanced XmlLang .[@xml:lang] / (@xml:lang)
advanced GlobalAttributeSimpleType ./xs:attribute/xs:simpleType/(../(., @name), .., ., descendant::*, descendant::*/@value, descendant::*/@base)

<xs:schema TargetNamespace UnqualifiedLocalElements UnqualifiedLocalAttributes targetNamespace="http://www.w3.org/XML/1998/namespace" TargetNamespace xml:lang="en" XmlLang >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
See http://www.w3.org/XML/1998/namespace.html and http://www.w3.org/TR/REC-xml for information about this namespace.
</xs:documentation>
</xs:annotation>
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
This schema defines attributes and an attribute group suitable for use by schemas wishing to allow xml:base, xml:lang or xml:space attributes on elements they define. To enable this, such a schema must import this schema for the XML namespace, e.g. as follows: <schema . . .> . . . <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/> Subsequently, qualified reference to any of the attributes or the group defined below will have the desired effect, e.g. <type . . .> . . . <attributeGroup ref="xml:specialAttrs"/> will define a type which will schema-validate an instance element with any of those attributes
</xs:documentation>
</xs:annotation>
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
In keeping with the XML Schema WG's standard versioning policy, this schema document will persist at http://www.w3.org/2001/03/xml.xsd. At the date of issue it can also be found at http://www.w3.org/2001/xml.xsd. The schema document at that URI may however change in the future, in order to remain compatible with the latest version of XML Schema itself. In other words, if the XML Schema namespace changes, the version of this document at http://www.w3.org/2001/xml.xsd will change accordingly; the version at http://www.w3.org/2001/03/xml.xsd will not change.
</xs:documentation>
</xs:annotation>
<xs:attribute GlobalAttribute name="lang" IdentifierName GlobalAttribute type="xs:language" GlobalAttribute LanguageAttribute >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
In due course, we should install the relevant ISO 2- and 3-letter codes as the enumerated possible values . . .
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute GlobalAttributeSimpleType GlobalAttributeSimpleType name="space" IdentifierName GlobalAttributeSimpleType GlobalAttributeSimpleType default="preserve" AttributeDefault >
<xs:simpleType GlobalAttributeSimpleType GlobalAttributeSimpleType >
<xs:restriction GlobalAttributeSimpleType base="xs:NCName" GlobalAttributeSimpleType >
<xs:enumeration GlobalAttributeSimpleType value="default" GlobalAttributeSimpleType />
<xs:enumeration GlobalAttributeSimpleType value="preserve" GlobalAttributeSimpleType />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute GlobalAttribute name="base" IdentifierName GlobalAttribute type="xs:anyURI" GlobalAttribute AnyURIAttribute >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
See http://www.w3.org/TR/xmlbase/ for information about this attribute.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup AttributeGroup name="specialAttrs" IdentifierName AttributeGroup >
<xs:attribute AttributeReference AttributeGroup ref="xml:base" AttributeReference />
<xs:attribute AttributeReference AttributeGroup ref="xml:lang" AttributeReference />
<xs:attribute AttributeReference AttributeGroup ref="xml:space" AttributeReference />
</xs:attributeGroup>
</xs:schema>

This document was produced by the W3C XML Schema Patterns for Databinding Working Group. Comments on this document may be sent to the public public-xsd-databinding-comments@w3.org mailing list (public archive).