Skip to content

Commit

Permalink
v2_1 2013-08 files
Browse files Browse the repository at this point in the history
  • Loading branch information
airosa committed Jun 27, 2014
1 parent 6688a36 commit d0b4719
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 77 deletions.
10 changes: 5 additions & 5 deletions v2_1/schemas/SDMXCommon.xsd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright SDMX 2010 - http://www.sdmx.org -->
<xs:schema targetNamespace="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" elementFormDefault="qualified" xmlns="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:schema targetNamespace="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" elementFormDefault="qualified" xmlns="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.1_20130301">
<xs:include schemaLocation="SDMXCommonReferences.xsd"/>
<!-- Note: The following import statement sometimes causes problems with IE 6.* If you have this problem, comment it out. -->
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
Expand Down Expand Up @@ -207,7 +207,7 @@
<xs:documentation>AlphaNumericType is a reusable simple type that allows for only mixed-case alphabetical and numeric characters.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[A-z0-9]+"/>
<xs:pattern value="[A-Za-z0-9]+"/>
</xs:restriction>
</xs:simpleType>

Expand All @@ -216,7 +216,7 @@
<xs:documentation>AlphaType is a reusable simple type that allows for only mixed-case alphabetical characters. This is derived from the AlphaNumericType.</xs:documentation>
</xs:annotation>
<xs:restriction base="AlphaNumericType">
<xs:pattern value="[A-z]+"/>
<xs:pattern value="[A-Za-z]+"/>
</xs:restriction>
</xs:simpleType>

Expand Down Expand Up @@ -1394,12 +1394,12 @@
</xs:enumeration>
<xs:enumeration value="Alpha">
<xs:annotation>
<xs:documentation>A string datatype which only allows for the simple aplhabetic charcter set of A-z.</xs:documentation>
<xs:documentation>A string datatype which only allows for the simple aplhabetic charcter set of A-Z, a-z.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="AlphaNumeric">
<xs:annotation>
<xs:documentation>A string datatype which only allows for the simple alphabetic character set of A-z plus the simple numeric character set of 0-9.</xs:documentation>
<xs:documentation>A string datatype which only allows for the simple alphabetic character set of A-Z, a-z plus the simple numeric character set of 0-9.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Numeric">
Expand Down
147 changes: 75 additions & 72 deletions v2_1/schemas/SDMXCommonReferences.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright SDMX 2010 - http://www.sdmx.org -->
<xs:schema targetNamespace="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common">
<xs:schema targetNamespace="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" version="2.1_20130301">


<xs:annotation>
<xs:appinfo>SDMX Common References Module</xs:appinfo>
<xs:documentation>The common references module contains common constructs that are used to reference objects.</xs:documentation>
Expand All @@ -14,7 +15,7 @@
<xs:documentation>NestedIDType is the least restrictive form of an identifier used throughout all SDMX-ML messages. It allows for a hierarchical identifier, with each portion separated by the '.' character. For the identifier portions, valid characters include A-Z, a-z, @, 0-9, _, -, $.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[A-z0-9_@$\-]+(\.[A-z0-9_@$\-]+)*"/>
<xs:pattern value="[A-Za-z0-9_@$\-]+(\.[A-Za-z0-9_@$\-]+)*"/>
</xs:restriction>
</xs:simpleType>

Expand All @@ -23,7 +24,7 @@
<xs:documentation>TwoLevelIDType defines an identifier with exactly two levels.</xs:documentation>
</xs:annotation>
<xs:restriction base="NestedIDType">
<xs:pattern value="[A-z0-9_@$\-]+\.[A-z0-9_@$\-]+"/>
<xs:pattern value="[A-Za-z0-9_@$\-]+\.[A-Za-z0-9_@$\-]+"/>
</xs:restriction>
</xs:simpleType>

Expand All @@ -32,7 +33,7 @@
<xs:documentation>IDType provides a type which is used for restricting the characters in codes and IDs throughout all SDMX-ML messages. Valid characters include A-Z, a-z, @, 0-9, _, -, $.</xs:documentation>
</xs:annotation>
<xs:restriction base="NestedIDType">
<xs:pattern value="[A-z0-9_@$\-]+"/>
<xs:pattern value="[A-Za-z0-9_@$\-]+"/>
</xs:restriction>
</xs:simpleType>

Expand All @@ -41,7 +42,7 @@
<xs:documentation>NCNameIDType restricts the IDType, so that the id may be used to generate valid XML components. IDs created from this type conform to the W3C XML Schema NCNAME type, and therefore can be used as element or attribute names.</xs:documentation>
</xs:annotation>
<xs:restriction base="IDType">
<xs:pattern value="[A-z][A-z0-9_\-]*"/>
<xs:pattern value="[A-Za-z][A-Za-z0-9_\-]*"/>
</xs:restriction>
</xs:simpleType>

Expand All @@ -50,7 +51,7 @@
<xs:documentation>NestedNCNameIDType restricts the NestedIDType, so that the id may be used to generate valid XML components. IDs created from this type conform to the W3C XML Schema NCNAME type, and therefore can be used as element or attribute names.</xs:documentation>
</xs:annotation>
<xs:restriction base="NestedIDType">
<xs:pattern value="[A-z][A-z0-9_\-]*(\.[A-z][A-z0-9_\-]*)*"/>
<xs:pattern value="[A-Za-z][A-Za-z0-9_\-]*(\.[A-Za-z][A-Za-z0-9_\-]*)*"/>
</xs:restriction>
</xs:simpleType>

Expand All @@ -59,7 +60,7 @@
<xs:documentation>SingleNCNameIDType restricts the NestedNCNameIDType to allow only one level. Note that this is the same pattern as the NCNameIDType, but can be used when the base type to be restricted is a nested NCNameIDType (where as the NCNameIDType could only restrict the IDType).</xs:documentation>
</xs:annotation>
<xs:restriction base="NestedNCNameIDType">
<xs:pattern value="[A-z][A-z0-9_\-]*"/>
<xs:pattern value="[A-Za-z][A-Za-z0-9_\-]*"/>
</xs:restriction>
</xs:simpleType>

Expand Down Expand Up @@ -100,10 +101,10 @@

<!-- Abstract Base Reference Types -->

<xs:complexType name="ReferenceType" abstract="true">
<xs:annotation>
<xs:complexType name="ReferenceType" abstract="true">
<xs:annotation>
<xs:documentation>ReferenceType is an abstract base type. It is used as the basis for all references, to all for a top level generic object reference that can be substituted with an explicit reference to any object. Any reference can consist of a Ref (which contains all required reference fields separately) and/or a URN. These must result in the identification of the same object. Note that the Ref and URN elements are local and unqualified in order to allow for refinement of this structure outside of the namespace. This allows any reference to further refined by a different namespace. For example, a metadata structure definition specific metadata set might wish to restrict the URN to only allow for a value from an enumerated list. The general URN structure, for the purpose of mapping the reference fields is as follows: urn:sdmx:org.package-name.class-name=agency-id:(maintainable-parent-object-id[maintainable-parent-object-version].)?(container-object-id.)?object-id([object-version])?.</xs:documentation>
</xs:annotation>
</xs:annotation>
<xs:choice>
<xs:sequence>
<xs:element name="Ref" type="RefBaseType" form="unqualified">
Expand Down Expand Up @@ -598,18 +599,18 @@

<!-- Specific Reference Types -->

<xs:complexType name="URNReferenceType">
<xs:annotation>
<xs:documentation>URNReferenceType is a type referencing any object via its URN. The exact type of object is not specified, although it can be determined from the URN value.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="ReferenceType">
<xs:sequence>
<xs:complexType name="URNReferenceType">
<xs:annotation>
<xs:documentation>URNReferenceType is a type referencing any object via its URN. The exact type of object is not specified, although it can be determined from the URN value.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="ReferenceType">
<xs:sequence>
<xs:element name="URN" type="xs:anyURI" form="unqualified"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:restriction>
</xs:complexContent>
</xs:complexType>

<xs:complexType name="MaintainableReferenceBaseType" abstract="true">
<xs:annotation>
Expand Down Expand Up @@ -3340,7 +3341,7 @@
</xs:restriction>
</xs:complexContent>
</xs:complexType>


<!-- Data/Metadata Set References -->

<xs:complexType name="SetReferenceType">
Expand All @@ -3361,7 +3362,7 @@
</xs:sequence>
</xs:complexType>

<!--Object Type List-->
<!--Object Type List-->

<xs:simpleType name="PackageTypeCodelistType">
<xs:annotation>
Expand Down Expand Up @@ -3390,7 +3391,7 @@
<xs:enumeration value="categoryscheme"/>
<xs:enumeration value="conceptscheme"/>
</xs:restriction>
</xs:simpleType>
</xs:simpleType>

<xs:simpleType name="StructurePackageTypeCodelistType">
<xs:annotation>
Expand All @@ -3401,83 +3402,84 @@
<xs:enumeration value="metadatastructure"/>
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="ObjectTypeCodelistType">
<xs:annotation>
<xs:documentation>ObjectTypeCodelistType provides an enumeration of all objects outside of the base infomration model class. This includes some abstract object types such as Organsiation and Constraint.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Any"/>
<xs:enumeration value="Agency"/>

<xs:simpleType name="ObjectTypeCodelistType">
<xs:annotation>
<xs:documentation>ObjectTypeCodelistType provides an enumeration of all objects outside of the base infomration model class. This includes some abstract object types such as Organsiation and Constraint.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Any"/>
<xs:enumeration value="Agency"/>
<xs:enumeration value="AgencyScheme"/>
<xs:enumeration value="AttachmentConstraint"/>
<xs:enumeration value="AttachmentConstraint"/>
<xs:enumeration value="Attribute"/>
<xs:enumeration value="AttributeDescriptor"/>
<xs:enumeration value="Categorisation"/>
<xs:enumeration value="AttributeDescriptor"/>
<xs:enumeration value="Categorisation"/>
<xs:enumeration value="Category"/>
<xs:enumeration value="CategorySchemeMap"/>
<xs:enumeration value="CategoryScheme"/>
<xs:enumeration value="Code"/>
<xs:enumeration value="CategorySchemeMap"/>
<xs:enumeration value="CategoryScheme"/>
<xs:enumeration value="Code"/>
<xs:enumeration value="CodeMap"/>
<xs:enumeration value="Codelist"/>
<xs:enumeration value="CodelistMap"/>
<xs:enumeration value="ComponentMap"/>
<xs:enumeration value="Concept"/>
<xs:enumeration value="Codelist"/>
<xs:enumeration value="CodelistMap"/>
<xs:enumeration value="ComponentMap"/>
<xs:enumeration value="Concept"/>
<xs:enumeration value="ConceptMap"/>
<xs:enumeration value="ConceptScheme"/>
<xs:enumeration value="ConceptSchemeMap"/>
<xs:enumeration value="Constraint"/>
<xs:enumeration value="ConceptSchemeMap"/>
<xs:enumeration value="Constraint"/>
<xs:enumeration value="ConstraintTarget"/>
<xs:enumeration value="ContentConstraint"/>
<xs:enumeration value="ContentConstraint"/>
<xs:enumeration value="Dataflow"/>
<xs:enumeration value="DataConsumer"/>
<xs:enumeration value="DataConsumer"/>
<xs:enumeration value="DataConsumerScheme"/>
<xs:enumeration value="DataProvider"/>
<xs:enumeration value="DataProvider"/>
<xs:enumeration value="DataProviderScheme"/>
<xs:enumeration value="DataSetTarget"/>
<xs:enumeration value="DataStructure"/>
<xs:enumeration value="Dimension"/>
<xs:enumeration value="Dimension"/>
<xs:enumeration value="DimensionDescriptor"/>
<xs:enumeration value="DimensionDescriptorValuesTarget"/>
<xs:enumeration value="GroupDimensionDescriptor"/>
<xs:enumeration value="HierarchicalCode"/>
<xs:enumeration value="GroupDimensionDescriptor"/>
<xs:enumeration value="HierarchicalCode"/>
<xs:enumeration value="HierarchicalCodelist"/>
<xs:enumeration value="Hierarchy"/>
<xs:enumeration value="HybridCodelistMap"/>
<xs:enumeration value="HybridCodeMap"/>
<xs:enumeration value="IdentifiableObjectTarget"/>
<xs:enumeration value="Level"/>
<xs:enumeration value="MeasureDescriptor"/>
<xs:enumeration value="IdentifiableObjectTarget"/>
<xs:enumeration value="Level"/>
<xs:enumeration value="MeasureDescriptor"/>
<xs:enumeration value="MeasureDimension"/>
<xs:enumeration value="Metadataflow"/>
<xs:enumeration value="MetadataAttribute"/>
<xs:enumeration value="Metadataflow"/>
<xs:enumeration value="MetadataAttribute"/>
<xs:enumeration value="MetadataSet"/>
<xs:enumeration value="MetadataStructure"/>
<xs:enumeration value="MetadataStructure"/>
<xs:enumeration value="MetadataTarget"/>
<xs:enumeration value="Organisation"/>
<xs:enumeration value="OrganisationMap"/>
<xs:enumeration value="OrganisationScheme"/>
<xs:enumeration value="OrganisationSchemeMap"/>
<xs:enumeration value="OrganisationScheme"/>
<xs:enumeration value="OrganisationSchemeMap"/>
<xs:enumeration value="OrganisationUnit"/>
<xs:enumeration value="OrganisationUnitScheme"/>
<xs:enumeration value="PrimaryMeasure"/>
<xs:enumeration value="Process"/>
<xs:enumeration value="ProcessStep"/>
<xs:enumeration value="ProvisionAgreement"/>
<xs:enumeration value="ReportingCategory"/>
<xs:enumeration value="ProcessStep"/>
<xs:enumeration value="ProvisionAgreement"/>
<xs:enumeration value="ReportingCategory"/>
<xs:enumeration value="ReportingCategoryMap"/>
<xs:enumeration value="ReportingTaxonomy"/>
<xs:enumeration value="ReportingTaxonomy"/>
<xs:enumeration value="ReportingTaxonomyMap"/>
<xs:enumeration value="ReportingYearStartDay"/>
<xs:enumeration value="ReportPeriodTarget"/>
<xs:enumeration value="ReportStructure"/>
<xs:enumeration value="StructureMap"/>
<xs:enumeration value="StructureSet"/>
<xs:enumeration value="StructureMap"/>
<xs:enumeration value="StructureSet"/>
<xs:enumeration value="TimeDimension"/>
<xs:enumeration value="Transition"/>
</xs:restriction>
</xs:simpleType>
</xs:restriction>
</xs:simpleType>


<xs:simpleType name="MaintainableTypeCodelistType">
<xs:annotation>
<xs:documentation>MaintainableTypeCodelistType provides an enumeration of all maintainable objects.</xs:documentation>
Expand Down Expand Up @@ -3591,7 +3593,7 @@
<xs:enumeration value="DataProviderScheme"/>
<xs:enumeration value="OrganisationUnitScheme"/>
</xs:restriction>
</xs:simpleType>
</xs:simpleType>

<xs:simpleType name="OrganisationTypeCodelistType">
<xs:annotation>
Expand All @@ -3604,7 +3606,7 @@
<xs:enumeration value="OrganisationUnit"/>
</xs:restriction>
</xs:simpleType>


<xs:simpleType name="StructureOrUsageTypeCodelistType">
<xs:annotation>
<xs:documentation>StructureOrUsageTypeCodelistType provides an enumeration all structure and structure usage objects</xs:documentation>
Expand Down Expand Up @@ -4125,8 +4127,9 @@
<xs:annotation>
<xs:documentation>TimeDimension is an empty element that denotes a time dimension object.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:element>


<xs:element name="Transition" type="EmptyType">
<xs:annotation>
<xs:documentation>Transition is an empty element that denotes a transition object.</xs:documentation>
Expand Down Expand Up @@ -4202,7 +4205,7 @@
<xs:element ref="TimeDimension" minOccurs="0"/>
<xs:element ref="Transition" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:complexType>

<xs:complexType name="MaintainableObjectTypeListType">
<xs:annotation>
Expand Down

0 comments on commit d0b4719

Please sign in to comment.