W3C

OASIS-DITA-referenceMod

The document http://docs.oasis-open.org/dita/v1.0.1/schema/referenceMod.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
advanced NoTargetNamespace .[not(@targetNamespace)]/ (.)
basic QualifiedLocalElements .[@elementFormDefault = 'qualified']/ (@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 NonIdentifierName .//.[@name and not(matches(@name, "^[A-Za-z_]([A-Za-z0-9_]0 31)$"))]/ (@name)
basic ImportSchema ./xs:import[@namespace and @schemaLocation]/ (., @namespace, @schemaLocation)
advanced GlobalElementUnqualifiedType ./xs:element[@name and @type and not(contains(@type, ':'))]/ (., @name, @type)
advanced ElementTypeDefaultNamespace .//xs:element[@name and @type and not(contains(@type, ':'))]/ (@name, @type)
advanced MixedContentType .//xs:complexType[@mixed = 'true']/ (@mixed)
advanced AttributeRequired .//xs:attribute[@use = 'required']/ (@use)
advanced AttributeDefault .//xs:attribute[@default] / (@default)
basic GlobalComplexType ./xs:complexType[@name]/ (., @name)
advanced ComplexTypeChoice .//xs:complexType/xs:choice/ (., xs:element/(., @name))
basic ComplexTypeAttribute .//xs:complexType/xs:attribute[@name]/ (., @name)
basic ComplexTypeSequence .//xs:complexType/xs:sequence/ (., xs:element/(., @name))
advanced ElementTypeReferenceUnqualified .//xs:element[@name and @type and namespace-uri-from-QName(resolve-QName(@type,.)) != 'http://www.w3.org/2001/XMLSchema' and not(contains(@type, ':'))]/ (., @name, @type)
basic AttributeReference .//xs:attribute[@ref and contains(@ref, ":")]/ (., @ref)
advanced AttributeReferenceUnqualified .//xs:attribute[@ref and not(contains(@ref, ':'))]/ (., @ref)
advanced AttributeTypeReferenceUnqualified .//xs:attribute[@name and @type and namespace-uri-from-QName(resolve-QName(@type,.)) != 'http://www.w3.org/2001/XMLSchema' and not(contains(@type, ':'))]/ (., @name, @type)
basic StringAttribute .//xs:attribute/@type[resolve-QName(.,..) = xs:QName('xs:string')]
advanced NMTOKENAttribute .//xs:attribute/@type[resolve-QName(.,..) = xs:QName('xs:NMTOKEN')]
advanced NMTOKENSAttribute .//xs:attribute/@type[resolve-QName(.,..) = xs:QName('xs:NMTOKENS')]
advanced IDAttribute .//xs:attribute/@type[resolve-QName(.,..) = xs:QName('xs:ID')]
advanced ChoiceMaxOccursUnbounded .//xs:choice[@maxOccurs = 'unbounded']/ (@maxOccurs)
advanced ChoiceMinOccurs0 .//xs:choice[@minOccurs='0']/ (@minOccurs)
advanced AttributeGroup .//xs:attributeGroup/(.,@name,@ref,xs:attribute)

<xs:schema NoTargetNamespace UnqualifiedLocalAttributes elementFormDefault="qualified" QualifiedLocalElements attributeFormDefault="unqualified" UnqualifiedLocalAttributes >
<!-- ==================== Import Section ======================= -->
<xs:import ImportSchema namespace="http://www.w3.org/XML/1998/namespace" ImportSchema schemaLocation="xml.xsd" ImportSchema />
<xs:import ImportSchema namespace="http://dita.oasis-open.org/architecture/2005/" ImportSchema schemaLocation="ditaarch.xsd" ImportSchema />
<xs:element GlobalElementUnqualifiedType ElementTypeReferenceUnqualified name="reference" IdentifierName GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified type="reference.class" GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
The <
<keyword DocumentationElement >
reference
</keyword>
> element defines a top-level container for a reference topic. Reference topics document programming constructs or facts about a product. Examples of reference topics include language elements, class descriptions, commands, functions, statements, protocols, types, declarators, operands, and API information, which provide quick access to facts, but no explanation of concepts or procedures. Reference topics have the same high-level structure as any other topic type, with a title, short description, and body. Within the body, reference topics are typically organized into one or more sections, property lists, and tables. The reference topic type provides general rules that apply to all kinds of reference information, using elements like <
<keyword DocumentationElement >
refsyn
</keyword>
> for syntax or signatures, and <
<keyword DocumentationElement >
properties
</keyword>
> for lists of properties and values.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element GlobalElementUnqualifiedType ElementTypeReferenceUnqualified name="refbody" IdentifierName GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified type="refbody.class" GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
The <
<keyword DocumentationElement >
refbody
</keyword>
> element is a container for the main content of the reference topic. Reference topics limit the body structure to tables (both simple and standard), property lists, syntax sections, and generic sections and examples, in any sequence or number.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element GlobalElementUnqualifiedType ElementTypeReferenceUnqualified name="refsyn" IdentifierName GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified type="refsyn.class" GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
The <
<keyword DocumentationElement >
refsyn
</keyword>
> element is a special section inside a reference topic. The section often contains syntax or signature content (for example, a command-line utility's calling syntax, or an API's signature). The <
<keyword DocumentationElement >
refsyn
</keyword>
> contains a brief, possibly diagrammatic description of the subject's interface or high-level structure.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element GlobalElementUnqualifiedType ElementTypeReferenceUnqualified name="properties" IdentifierName GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified type="properties.class" GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
The <
<keyword DocumentationElement >
properties
</keyword>
> element gives a list of properties for the subject of the current topic, for example whether a class is public or protected. Each property can include the type, value, and a description. The typical rendering is usually in a table-like format. To represent multiple values for a type, just create additional property elements and use only the <
<keyword DocumentationElement >
propvalue
</keyword>
> element (and <
<keyword DocumentationElement >
propdesc
</keyword>
> when needed) for each successive value.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element GlobalElementUnqualifiedType ElementTypeReferenceUnqualified name="property" IdentifierName GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified type="property.class" GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
The <
<keyword DocumentationElement >
property
</keyword>
> element represents a property of the current topic's subject. For example, if the current topic is a class, the property might show that the class is protected rather than public. It contains three optional elements: type, value, and description.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element GlobalElementUnqualifiedType ElementTypeReferenceUnqualified name="propvalue" IdentifierName GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified type="propvalue.class" GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
The <
<keyword DocumentationElement >
propvalue
</keyword>
> element indicates the value or values for the current property type. You can put values in separate rows if they need separate descriptions, and just leave the <
<keyword DocumentationElement >
proptype
</keyword>
> element blank.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element GlobalElementUnqualifiedType ElementTypeReferenceUnqualified name="propdesc" IdentifierName GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified type="propdesc.class" GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
The <
<keyword DocumentationElement >
propdesc
</keyword>
> element is used to provide a short description of the property type and its listed values (or just the value).
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element GlobalElementUnqualifiedType ElementTypeReferenceUnqualified name="proptype" IdentifierName GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified type="proptype.class" GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
The proptype element describes the type of property.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element GlobalElementUnqualifiedType ElementTypeReferenceUnqualified name="prophead" IdentifierName GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified type="prophead.class" GlobalElementUnqualifiedType ElementTypeDefaultNamespace ElementTypeReferenceUnqualified >
<xs:annotation DocumentationElement >
<xs:documentation DocumentationElement >
The prophead element supports regular headings for the properties element.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group name="reference-info-types" NonIdentifierName >
<xs:choice>
<xs:group ref="reference"/>
</xs:choice>
</xs:group>
<!-- Base type: topic.class -->
<xs:complexType GlobalComplexType name="reference.class" NonIdentifierName GlobalComplexType >
<xs:sequence ComplexTypeSequence >
<xs:group ref="title"/>
<xs:group ref="titlealts" minOccurs="0"/>
<xs:group ref="shortdesc" minOccurs="0"/>
<xs:group ref="prolog" minOccurs="0"/>
<xs:group ref="refbody" minOccurs="0"/>
<xs:group ref="related-links" minOccurs="0"/>
<xs:group ref="info-types" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ComplexTypeAttribute name="id" IdentifierName ComplexTypeAttribute type="xs:ID" IDAttribute use="required" AttributeRequired />
<xs:attribute ComplexTypeAttribute name="conref" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute AttributeReference ref="ditaarch:DITAArchVersion" AttributeReference />
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="select-atts" AttributeGroup />
<xs:attribute AttributeReference ref="xml:lang" AttributeReference />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/topic reference/reference " AttributeDefault />
</xs:complexType>
<!-- Base type: body.class -->
<xs:complexType GlobalComplexType name="refbody.class" NonIdentifierName GlobalComplexType >
<xs:choice ComplexTypeChoice minOccurs="0" ChoiceMinOccurs0 maxOccurs="unbounded" ChoiceMaxOccursUnbounded >
<xs:group ref="refsyn"/>
<xs:group ref="table"/>
<xs:group ref="simpletable"/>
<xs:group ref="properties"/>
<xs:group ref="section"/>
<xs:group ref="example"/>
</xs:choice>
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="id-atts" AttributeGroup />
<xs:attribute AttributeReference ref="xml:lang" AttributeReference />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/body reference/refbody " AttributeDefault />
</xs:complexType>
<!-- Base type: section.class -->
<xs:complexType GlobalComplexType name="refsyn.class" NonIdentifierName GlobalComplexType mixed="true" MixedContentType >
<xs:choice ComplexTypeChoice minOccurs="0" ChoiceMinOccurs0 maxOccurs="unbounded" ChoiceMaxOccursUnbounded >
<xs:group ref="section.cnt"/>
</xs:choice>
<xs:attribute ComplexTypeAttribute name="spectitle" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/section reference/refsyn " AttributeDefault />
</xs:complexType>
<!-- Base type: simpletable.class -->
<xs:complexType GlobalComplexType name="properties.class" NonIdentifierName GlobalComplexType >
<xs:sequence ComplexTypeSequence >
<xs:group ref="prophead" minOccurs="0"/>
<xs:group ref="property" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ComplexTypeAttribute name="relcolwidth" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute ComplexTypeAttribute name="keycol" IdentifierName ComplexTypeAttribute type="xs:NMTOKEN" NMTOKENAttribute />
<xs:attribute ComplexTypeAttribute name="refcols" IdentifierName ComplexTypeAttribute type="xs:NMTOKENS" NMTOKENSAttribute />
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute ComplexTypeAttribute name="spectitle" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="display-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/simpletable reference/properties " AttributeDefault />
</xs:complexType>
<!-- Base type: sthead.class -->
<xs:complexType GlobalComplexType name="prophead.class" NonIdentifierName GlobalComplexType >
<xs:sequence ComplexTypeSequence >
<xs:group ref="proptypehd" minOccurs="0"/>
<xs:group ref="propvaluehd" minOccurs="0"/>
<xs:group ref="propdeschd" minOccurs="0"/>
</xs:sequence>
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/sthead reference/prophead " AttributeDefault />
</xs:complexType>
<!-- Base type: stentry.class -->
<xs:complexType GlobalComplexType name="proptypehd.class" NonIdentifierName GlobalComplexType mixed="true" MixedContentType >
<xs:choice ComplexTypeChoice minOccurs="0" ChoiceMinOccurs0 maxOccurs="unbounded" ChoiceMaxOccursUnbounded >
<xs:group ref="tblcell.cnt"/>
</xs:choice>
<xs:attribute ComplexTypeAttribute name="specentry" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/stentry reference/proptypehd " AttributeDefault />
</xs:complexType>
<!-- Base type: stentry.class -->
<xs:complexType GlobalComplexType name="propvaluehd.class" NonIdentifierName GlobalComplexType mixed="true" MixedContentType >
<xs:choice ComplexTypeChoice minOccurs="0" ChoiceMinOccurs0 maxOccurs="unbounded" ChoiceMaxOccursUnbounded >
<xs:group ref="tblcell.cnt"/>
</xs:choice>
<xs:attribute ComplexTypeAttribute name="specentry" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/stentry reference/propvaluehd " AttributeDefault />
</xs:complexType>
<!-- Base type: stentry.class -->
<xs:complexType GlobalComplexType name="propdeschd.class" NonIdentifierName GlobalComplexType mixed="true" MixedContentType >
<xs:choice ComplexTypeChoice minOccurs="0" ChoiceMinOccurs0 maxOccurs="unbounded" ChoiceMaxOccursUnbounded >
<xs:group ref="tblcell.cnt"/>
</xs:choice>
<xs:attribute ComplexTypeAttribute name="specentry" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/stentry reference/propdeschd " AttributeDefault />
</xs:complexType>
<!-- Base type: strow.class -->
<xs:complexType GlobalComplexType name="property.class" NonIdentifierName GlobalComplexType >
<xs:sequence ComplexTypeSequence >
<xs:group ref="proptype" minOccurs="0"/>
<xs:group ref="propvalue" minOccurs="0"/>
<xs:group ref="propdesc" minOccurs="0"/>
</xs:sequence>
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/strow reference/property " AttributeDefault />
</xs:complexType>
<!-- Base type: stentry.class -->
<xs:complexType GlobalComplexType name="proptype.class" NonIdentifierName GlobalComplexType mixed="true" MixedContentType >
<xs:choice ComplexTypeChoice minOccurs="0" ChoiceMinOccurs0 maxOccurs="unbounded" ChoiceMaxOccursUnbounded >
<xs:group ref="ph.cnt"/>
</xs:choice>
<xs:attribute ComplexTypeAttribute name="specentry" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/stentry reference/proptype " AttributeDefault />
</xs:complexType>
<!-- Base type: stentry.class -->
<xs:complexType GlobalComplexType name="propvalue.class" NonIdentifierName GlobalComplexType mixed="true" MixedContentType >
<xs:choice ComplexTypeChoice minOccurs="0" ChoiceMinOccurs0 maxOccurs="unbounded" ChoiceMaxOccursUnbounded >
<xs:group ref="ph.cnt"/>
</xs:choice>
<xs:attribute ComplexTypeAttribute name="specentry" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/stentry reference/propvalue " AttributeDefault />
</xs:complexType>
<!-- Base type: stentry.class -->
<xs:complexType GlobalComplexType name="propdesc.class" NonIdentifierName GlobalComplexType mixed="true" MixedContentType >
<xs:choice ComplexTypeChoice minOccurs="0" ChoiceMinOccurs0 maxOccurs="unbounded" ChoiceMaxOccursUnbounded >
<xs:group ref="desc.cnt"/>
</xs:choice>
<xs:attribute ComplexTypeAttribute name="specentry" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attribute ComplexTypeAttribute name="outputclass" IdentifierName ComplexTypeAttribute type="xs:string" StringAttribute />
<xs:attributeGroup AttributeGroup ref="univ-atts" AttributeGroup />
<xs:attributeGroup AttributeGroup ref="global-atts" AttributeGroup />
<xs:attribute AttributeReferenceUnqualified ref="class" AttributeReferenceUnqualified default="- topic/stentry reference/propdesc " AttributeDefault />
</xs:complexType>
</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).