XML Schema "ddiprofile.xsd"
Target Namespace:
ddi:ddiprofile:3_2
Defined Components:
elements (8 global + 4 local), complexTypes (4)
Default Namespace-Qualified Form:
Local Elements: qualified; Local Attributes: unqualified
Schema Location:
D:\XMLSchema\DDI\DDI_3_2_2014-02-05_Documentation_XMLSchema\XMLSchema\ddiprofile.xsd; see XML source
Imports Schemas (1):
reusable.xsd [src]
Imported by Schemas (3):
group.xsd [src], instance.xsd [src], studyunit.xsd [src]
All Element Summary
AlternateName
An alternate name for the object expressed using an International String to support multiple language versions of the same content.
Type:
Content:
complex, 1 element
Defined:
globally; see XML source
Used:
ApplicationOfProfile
Allows for the use of a controlled vocabulary to designate intended applications of the profile.
Type:
Content:
simple, 7 attributes
Defined:
globally; see XML source
Used:
DDINamespace
Provides the version of DDI schemas used.
Type:
xs:decimal
Content:
simple
Defined:
locally within DDIProfileType complexType; see XML source
DDIProfile
Describes the subset of valid DDI objects used by an agency for a specified purpose.
Type:
Content:
complex, 9 attributes, 24 elements
Defined:
globally; see XML source
Used:
DDIProfileName
Name of the DDI Profile using the DDI Name structure.
Type:
Content:
complex, 2 attributes, 1 element
Defined:
globally; see XML source
Used:
Instructions
Instructions provided using a StructuredString to support multiple language versions of the same content as well as optional formatting of the content.
Type:
Content:
complex, 1 element
Defined:
globally; see XML source
Used:
NotUsed
Identifies DDI objects expressed as an XPath that are not supported by the system or agency using this profile.
Type:
Content:
simple, 1 attribute
Defined:
globally; see XML source
Used:
Used
Specifies a DDI object and all its sub-objects supported by the DDIProfile.
Type:
Content:
complex, 5 attributes, 3 elements
Defined:
globally; see XML source
Used:
XMLNamespace
Specify the namespace which the prefix represents.
Type:
xs:string
Content:
simple
Defined:
locally within XMLPrefixMapType complexType; see XML source
XMLPrefix
Specify the exact prefix used.
Type:
xs:string
Content:
simple
Defined:
locally within XMLPrefixMapType complexType; see XML source
XMLPrefixMap
Maps a specified prefix to a namespace.
Type:
Content:
complex, 2 elements
Defined:
globally; see XML source
Used:
XPathVersion
Provides the version of XPath used.
Type:
xs:decimal
Content:
simple
Defined:
locally within DDIProfileType complexType; see XML source
Complex Type Summary
Describes the subset of valid DDI objects used by an agency for a specified purpose.
Content:
complex, 9 attributes, 24 elements
Defined:
globally; see XML source
Includes:
definitions of 11 elements
Used:
Identifies DDI objects expressed as an XPath that are not supported by the system or agency using this profile.
Content:
simple, 1 attribute
Defined:
globally; see XML source
Includes:
definition of 1 attribute
Used:
Specifies a DDI object and all its sub-objects supported by the DDIProfile.
Content:
complex, 5 attributes, 3 elements
Defined:
globally; see XML source
Includes:
definitions of 5 attributes, 3 elements
Used:
Maps a specified prefix to a namespace.
Content:
complex, 2 elements
Defined:
globally; see XML source
Includes:
definitions of 2 elements
Used:
XML Source
<?xml version="1.0" encoding="UTF-8"?>
<!--

Copyright (c) 2014 DDI Alliance, DDI 3.2 release, 2014-01-15

This file is part of DDI 3.2 XML Schema.

DDI 3.2 XML Schema is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

DDI 3.2 XML Schema is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
for more details.

You should have received a copy of the GNU Lesser General Public License along
with DDI 3.2 XML Schema. If not, see <http://www.gnu.org/licenses/>.

-->
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="ddi:ddiprofile:3_2" xmlns="ddi:ddiprofile:3_2" xmlns:r="ddi:reusable:3_2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="ddi:reusable:3_2" schemaLocation="reusable.xsd"/>
<xs:element name="DDIProfile" type="DDIProfileType">
<xs:annotation>
<xs:documentation>
Describes the subset of valid DDI objects used by an agency for a specified purpose.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="DDIProfileType">
<xs:annotation>
<xs:documentation>
Describes the subset of valid DDI objects used by an agency for a specified purpose. This may be the required and supported objects for a specific system, a profile for deposit in an archive, requirements at different points of production, etc. In addition to the standard name, label, and description the DDI Profile describes the intended application of the profile, its purpose, the version of XPath used in describing the supported objects, the DDI namespace (major and minor version numbers), a mapping of schema to prefixes (if different from the standard DDI model), a set of instructions for use of the profile, and a listing of used and unsupported objects. These objects may be constrained (i.e., change from optional to required), provided a fixed value, or provided a local name.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:MaintainableType">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="DDIProfileName">
<xs:annotation>
<xs:documentation>
A name for the profile. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="r:Label">
<xs:annotation>
<xs:documentation>
A display label for the profile. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" ref="r:Description">
<xs:annotation>
<xs:documentation>
A description of the content and purpose of the profile. May be expressed in multiple languages and supports the use of structured content.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="ApplicationOfProfile">
<xs:annotation>
<xs:documentation>
A brief description of the intended applications of the profile. Supports the use of an external controlled vocabulary.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" ref="r:Purpose">
<xs:annotation>
<xs:documentation>
Purpose describes the purpose of creating the profile such as describing the coverage of a distribution software system.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element default="1.0" name="XPathVersion" type="xs:decimal">
<xs:annotation>
<xs:documentation>
Provides the version of XPath used. Values are 1.0, 2.0 at this time.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="DDINamespace" type="xs:decimal">
<xs:annotation>
<xs:documentation>
Provides the version of DDI schemas used. Values are 2.5, 3.0, 3.1, etc. Note that only the Major.Minor portion of the version number is used.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="XMLPrefixMap">
<xs:annotation>
<xs:documentation>
If you are not using the standard DDI prefix or the full DDI name then provide mapping. For each XML namespace used in the profile's XPath expressions, the XML namespaces must have their prefix specified using this element.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" ref="Instructions">
<xs:annotation>
<xs:documentation>
Instructions for use of the profile. Supports multiple language versions of the same content as well as optional formatting of the content.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element ref="Used">
<xs:annotation>
<xs:documentation>
Indicates an element in the DDI which is used by the profile expressed as an XPath. Note that including a complex element will include all of its component parts.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="NotUsed">
<xs:annotation>
<xs:documentation>
Indicates an element in the DDI which is not used by the profile expressed as an XPath. You cannot list anything which is required in the DDI schemas, as this would produce invalid XML instances.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="DDIProfileName" type="r:NameType">
<xs:annotation>
<xs:documentation>
Name of the DDI Profile using the DDI Name structure.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="XMLPrefixMap" type="XMLPrefixMapType">
<xs:annotation>
<xs:documentation>Maps a specified prefix to a namespace.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Instructions" type="r:StructuredStringType">
<xs:annotation>
<xs:documentation>
Instructions provided using a StructuredString to support multiple language versions of the same content as well as optional formatting of the content.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AlternateName" type="r:InternationalStringType">
<xs:annotation>
<xs:documentation>
An alternate name for the object expressed using an International String to support multiple language versions of the same content.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ApplicationOfProfile" type="r:CodeValueType">
<xs:annotation>
<xs:documentation>
Allows for the use of a controlled vocabulary to designate intended applications of the profile.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="XMLPrefixMapType">
<xs:annotation>
<xs:documentation>
Maps a specified prefix to a namespace. For each XML namespace used in the profile's XPath expressions, the XML namespaces must have their prefix specified using this element.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="XMLPrefix" type="xs:string">
<xs:annotation>
<xs:documentation>Specify the exact prefix used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="XMLNamespace" type="xs:string">
<xs:annotation>
<xs:documentation>
Specify the namespace which the prefix represents.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="UsedType">
<xs:annotation>
<xs:documentation>
Specifies a DDI object and all its sub-objects supported by the DDIProfile. May specify an alternate local name and description of an object, instructions for its use, and set limits on its allowed usage.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" ref="AlternateName">
<xs:annotation>
<xs:documentation>
Provides an alternate name for the element, for presentation purposes (not for use in the XML instance). It may be supplied in several language-versions.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" ref="r:Description">
<xs:annotation>
<xs:documentation>
A description of the content and purpose of the object. May be expressed in multiple languages and supports the use of structured content.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" ref="Instructions">
<xs:annotation>
<xs:documentation>
Instructions for the use of the object within the context of the profile. May be expressed in multiple languages and supports the use of structured content.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute default="false" name="isRequired" type="xs:boolean">
<xs:annotation>
<xs:documentation>
If true indicates that an element described as optional in DDI is required by the profile.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="xpath" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Contains an XPath which points to an element or attribute in DDI instances which is used by the profile. All subelements of a used element are assumed to be supported unless explicitly addressed by the profile. The number of supported repetitions may be included in the XPath expression.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="defaultValue" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
This field provides a default value for the specified element or attribute if it holds simple content, and the value must be a valid one per the DDI schemas. This assumes that the value is not specified in the DDI instance itself, which would override the default. The value should also be provided as part of the XPath expression supplied for the field.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="limitMaxOccurs" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
This field allows for limiting the maximum occurrences of this field. If the number is greater than the maxOccurs value in DDI it will be ignored and the DDI specification will remain in use.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="fixedValue" type="xs:boolean">
<xs:annotation>
<xs:documentation>
This field, if set to true, provides an indication that the default value supplied in the fixedValue attribute is the only one which is allowed for the profile - other values will be overridden with the default (a warning should be issued to the creator of the instance); the value must be a valid one per the DDI schemas.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="NotUsedType">
<xs:annotation>
<xs:documentation>
Identifies DDI objects expressed as an XPath that are not supported by the system or agency using this profile.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="xpath" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Contains an XPath which points to an element or attribute in DDI instances which is not used by the profile. All subelements of an unused element are assumed to be included unless explicitly addressed by the profile. The number of supported repetitions may be included in the XPath expression.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="Used" type="UsedType">
<xs:annotation>
<xs:documentation>
Specifies a DDI object and all its sub-objects supported by the DDIProfile.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NotUsed" type="NotUsedType">
<xs:annotation>
<xs:documentation>
Identifies DDI objects expressed as an XPath that are not supported by the system or agency using this profile.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>

XML schema documentation generated with DocFlex/XML RE 1.9.0 using DocFlex/XML XSDDoc 2.8.0 template set