Last modified by Artur on 2025/09/10 11:19

From version 4.6
edited by Helena
on 2025/06/24 14:52
Change comment: There is no comment for this version
To version 4.7
edited by Helena
on 2025/06/24 14:59
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -555,20 +555,16 @@
555 555  **ReportType: **ReportType contains a set of report attributes and identifies a target objects] to which they apply.
556 556  
557 557  Derivation:
558 +* //com:AnnotableType// (extension) 
559 +** ReportType
558 558  
559 -//com:AnnotableType// (extension) 
560 - ReportType
561 -
562 562  Attributes:
563 -
564 564  id
565 565  
566 566  Content:
567 -
568 568  com:Annotations?, Target, AttributeSet
569 569  
570 570  Attribute Documentation:
571 -
572 572  |**Name**|**Type**|**Documentation**
573 573  |id|com:IDType|The id attribute holds the identifier of the report structure as defined in the metadata structure definition. This identifies the report structure which defines the structure of metadata that is being reported.
574 574  
... ... @@ -582,20 +582,16 @@
582 582  **TargetType: **TargetType defines the structure of a target. It contains a set of target reference values which when taken together, identify the object or objects to which the reported metadata apply.
583 583  
584 584  Attributes:
585 -
586 586  id
587 587  
588 588  Content:
589 -
590 590  ReferenceValue+
591 591  
592 592  Attribute Documentation:
593 -
594 594  |**Name**|**Type**|**Documentation**
595 595  |id|com:IDType|The id attribute holds the identifier of the metadata target as defined in the metadata structure definition. This identifies the metadata target of the report structure that identifies the target object(s) of the reported metadata.
596 596  
597 597  Element Documentation:
598 -
599 599  |**Name**|**Type**|**Documentation**
600 600  |ReferenceValue|ReferenceValueType|ReferenceValue contains a value for a target reference object reference. When this is taken with its sibling elements, they identify the object or objects to which the reported metadata apply. The content of this will either be a reference to an identifiable object, a data key, a reference to a data set, or a report period.
601 601  
... ... @@ -602,20 +602,16 @@
602 602  **ReferenceValueType: **ReferenceValueType defines the structure of a target object reference value. A target reference value will either be a reference to an identifiable object, a data key, a reference to a data set, or a report period.
603 603  
604 604  Attributes:
605 -
606 606  id
607 607  
608 608  Content:
609 -
610 610  (ObjectReference | DataKey | DataSetReference | ConstraintContentReference | ReportPeriod)
611 611  
612 612  Attribute Documentation:
613 -
614 614  |**Name**|**Type**|**Documentation**
615 615  |id|com:IDType|The id attribute holds the identifier of the target reference object as defined in the metadata structure definition. This identifies the target reference of the metadata target that identifes one of the target references, that when taken together, identify the target of the reported metadata.
616 616  
617 617  Element Documentation:
618 -
619 619  |**Name**|**Type**|**Documentation**
620 620  |ObjectReference|com: ObjectReferenceType|ObjectReference provides a reference to an identifiable object in the SDMX information model. An identifiable object target will utilize this option as the representation of the target reference value.
621 621  |DataKey|com:DataKeyType|ObjectReference provides a set of dimension references and values for those dimension for the purpose of reporting metadata against a set of data. A key descriptor values target will utilize this option as the representation of the target reference value.
... ... @@ -626,11 +626,9 @@
626 626  **AttributeSetType: **AttributeSetType defines the structure for a collection of reported metadata attributes.
627 627  
628 628  Content:
629 -
630 630  ReportedAttribute+
631 631  
632 632  Element Documentation:
633 -
634 634  |**Name**|**Type**|**Documentation**
635 635  |ReportedAttribute|ReportedAttributeTyp e|ReportedAttribute provides the details of a reported attribute, including a value and/or child reported attributes.
636 636  
... ... @@ -637,26 +637,21 @@
637 637  **ReportedAttributeType: **ReportedAttributeType defines the structure for a reported metadata attribute. A value for the attribute can be supplied as either a single value, or multi-lingual text values (either structured or unstructured). An optional set of child metadata attributes is also available if the metadata attribute definition defines nested metadata attributes.
638 638  
639 639  Derivation:
626 +* //com:AnnotableType// (extension) 
627 +** ReportedAttributeType
640 640  
641 -//com:AnnotableType// (extension) 
642 - ReportedAttributeType
643 -
644 644  Attributes:
645 -
646 646  id, value?
647 647  
648 648  Content:
649 -
650 650  com:Annotations?, (com:Text+ | com:StructuredText+)?, AttributeSet?
651 651  
652 652  Attribute Documentation:
653 -
654 654  |**Name**|**Type**|**Documentation**
655 655  |id|com:IDType|The id attribute identifies the metadata attribute that the value is being reported for.
656 656  |value|xs:string|The value attribute holds any simple value for the metadata attribute.
657 657  
658 658  Element Documentation:
659 -
660 660  |**Name**|**Type**|**Documentation**
661 661  |com:Annotations|com:AnnotationsType|Annotations is a reusable element the provides for a collection of annotations. It has been made global so that restrictions of types that extend AnnotatableType my reference it.
662 662  |com:Text|com:TextType|Text is used to supply parallel multi-lingual textual values for the reported metadata attribute. This will be used if the text format of the metadata attribute has a type of string and the multi-lingual value is set to true.
... ... @@ -663,14 +663,11 @@
663 663  |com:StructuredText|com:XHTMLType|StructuredText is used to supply parallel multi-lingual structured (as XHTML) textual values for the reported metadata attribute. This will be used if the text format of the metadata attribute has a type of XHTML and the multi-lingual value is set to true.
664 664  |AttributeSet|AttributeSetType|AttributeSet contains the reported metadata attribute values for the child metadata attributes.
665 665  
666 -1.
667 -11. Structure Specific Metadata Namespace
647 +== Structure Specific Metadata Namespace ==
668 668  
669 669  **http:~/~/www.sdmx.org/resources/sdmxml/schemas/v2_1/metadata/structurespecific**
670 670  
671 -1.
672 -11.
673 -111. Summary
651 +=== Summary ===
674 674  
675 675  Referenced Namespaces:
676 676  
... ... @@ -680,30 +680,23 @@
680 680  |http:~/~/www.w3.org/2001/XMLSchema|xs
681 681  
682 682  Contents:
683 -
684 684  5 Complex Types
685 685  
686 -1.
687 -11.
688 -111. Complex Types
663 +=== Complex Types ===
689 689  
690 690  **//MetadataSetType//: **MetadataSetType is an abstract base type the forms the basis for a metadata structure specific metadata set. It is restricted by the metadata structure definition specific schema to meet its needs.
691 691  
692 692  Derivation:
668 +* //com:AnnotableType// (extension) 
669 +** //MetadataSetType//
693 693  
694 -//com:AnnotableType// (extension) 
695 - //MetadataSetType//
696 -
697 697  Attributes:
698 -
699 699  structureRef, setID?, action?, reportingBeginDate?, reportingEndDate?, validFromDate?, validToDate?, publicationYear?, publicationPeriod?
700 700  
701 701  Content:
702 -
703 703  com:Annotations?, com:Name*, DataProvider?, Report+
704 704  
705 705  Attribute Documentation:
706 -
707 707  |**Name**|**Type**|**Documentation**
708 708  |structureRef|xs:IDREF|The structureRef contains a reference to a structural specification in the header of a data or reference metadata message. The structural specification details which structure the data or reference metadata conforms to, as well as providing additional information such as how the data is structure (e.g. which dimension occurs at the observation level for a data set).
709 709  |setID|com:IDType|The setID provides an identification of the data or metadata set.
... ... @@ -716,7 +716,6 @@
716 716  |publicationPeriod|com: ObservationalTimePer iodType|The publicationPeriod specifies the period of publication of the data or metadata in terms of whatever provisioning agreements might be in force (i.e., "Q1 2005" if that is the time of publication for a data set published on a quarterly basis).
717 717  
718 718  Element Documentation:
719 -
720 720  |**Name**|**Type**|**Documentation**
721 721  |com:Annotations|com:AnnotationsType|Annotations is a reusable element the provides for a collection of annotations. It has been made global so that restrictions of types that extend AnnotatableType my reference it.
722 722  |com:Name|com:TextType|Name is a reusable element, used for providing a human-readable name for an object.
... ... @@ -726,25 +726,20 @@
726 726  **//ReportType//: **ReportType is an abstract base type the forms the basis for a metadata structure definition specific report, based on the defined report structures. This type is restricted in the metadata structure definition specific schema so that the Target and AttributeSet conform to the prescribed report structure.
727 727  
728 728  Derivation:
699 +* //com:AnnotableType// (extension) 
700 +** //ReportType//
729 729  
730 -//com:AnnotableType// (extension) 
731 - //ReportType//
732 -
733 733  Attributes:
734 -
735 735  id?
736 736  
737 737  Content:
738 -
739 739  com:Annotations?, Target, AttributeSet
740 740  
741 741  Attribute Documentation:
742 -
743 743  |**Name**|**Type**|**Documentation**
744 744  |id|com:IDType|The id attribute holds the identifier of the report structure as defined in the metadata structure definition. This identifies the report structure which defines the structure of metadata that is being reported. This is optional and not expected to be supplied as the metadata structure definition specific schema will specify a fixed value such that the reference to the report structure will always be available if required for processing.
745 745  
746 746  Element Documentation:
747 -
748 748  |**Name**|**Type**|**Documentation**
749 749  |com:Annotations|com:AnnotationsType|Annotations is a reusable element the provides for a collection of annotations. It has been made global so that restrictions of types that extend AnnotatableType my reference it.
750 750  |Target|//TargetType//|Target contains a set of target reference values which when taken together, identify the object or objects to which the reported metadata apply. This element is unqualified so that the metadata structure definition specific schema can refine the type of the element such that the references values can be validated against those defined in the metadata targets for the report structure.
... ... @@ -753,20 +753,16 @@
753 753  **//TargetType//: **TargetType is an abstract base type that forms the basis of a the metadata report's metadata target value. This type is restricted in the metadata structure definition specific schema so that the ReferenceValue elements conform to the targets specified in the metadata target defined in the metadata structure definition.
754 754  
755 755  Attributes:
756 -
757 757  id?
758 758  
759 759  Content:
760 -
761 761  ReferenceValue+
762 762  
763 763  Attribute Documentation:
764 -
765 765  |**Name**|**Type**|**Documentation**
766 766  |id|com:IDType|The id attribute holds the identifier of the metadata target as defined in the metadata structure definition. This identifies the metadata target of the report structure that identifies the target object(s) of the reported metadata. This is optional and not expected to be supplied as the metadata structure definition specific schema will specify a fixed value such that the reference to the metadata target will always be available if required for processing.
767 767  
768 768  Element Documentation:
769 -
770 770  |**Name**|**Type**|**Documentation**
771 771  |ReferenceValue|//ReferenceValueType//|ReferenceValue contains a value for a target reference. When this is taken with its sibling elements, they identify the object or objects to which the reported metadata apply. The content of this will either be a reference to an identifiable object, a data key, a reference to a data set, or a report period. This element is unqualified so that the metadata structure definition specific schema can refine the type of the element such that value can be validated against the format defined in the metadata structure definition.
772 772  
... ... @@ -773,20 +773,16 @@
773 773  **//ReferenceValueType//: **ReferenceValueType is an abstract base type that forms the basis of a target reference value. A target reference value will either be a reference to an identifiable object, a data key, a reference to a data set, or a report period. The choice of these options will be refined to only one according to the definition of the target in the metadata structure definition.
774 774  
775 775  Attributes:
776 -
777 777  id?
778 778  
779 779  Content:
780 -
781 781  (ObjectReference | DataKey | DataSetReference | ConstraintContentReference | ReportPeriod)
782 782  
783 783  Attribute Documentation:
784 -
785 785  |**Name**|**Type**|**Documentation**
786 786  |id|com:IDType|The id attribute holds the identifier of the target reference object reference as defined in the metadata structure definition. This identifies the target reference of the metadata target that identifes one of the target references, that when taken together, identify the target of the reported metadata. This is optional and not expected to be supplied as the metadata structure definition specific schema will specify a fixed value such that the reference to the target object definition will always be available if required for processing.
787 787  
788 788  Element Documentation:
789 -
790 790  |**Name**|**Type**|**Documentation**
791 791  |ObjectReference|//com:ReferenceType//|ObjectReference provides a reference to an identifiable object in the SDMX information model. An identifiable object target will utilize this option as the representation of the target reference value. This element is unqualified so that the metadata structure definition specific schema can refine the type of the element such that the type of reference is valid according to the object type specified in the identifiable object target in the metadata structure definition. At the very least, the reference will be specific to the type of object being referenced so that a complete set of reference fields must be provided. In cases where an item object is restricted to be from a particular scheme, this type will be further restricted so that only a valid item reference can be supplied. The structure of this reference is such that it can be generically processed without needing to know what the intended target object type is prior to processing, as this information is part of the reference.
792 792  |DataKey|com:DataKeyType|ObjectReference provides a set of dimension references and values for those dimension for the purpose of reporting metadata against a set of data. A key descriptor values target will utilize this option as the representation of the target reference value. It is not expect that the metadata structure definition specific schema would refine this, but none the less, it is an unqualified element.
... ... @@ -797,20 +797,16 @@
797 797  **//ReportedAttributeType//: **ReportedAttributeType is an abstract base type that forms the basis for a metadata structure specific metadata attribute. A value for the attribute can be supplied as either a single value, or multi-lingual text values (either structured or unstructured). An optional set of child metadata attributes is also available if the metadata attribute definition defines nested metadata attributes. The metadata structure definition specific schema will refine this type for each metadata attribute such that the content can be validation against what is defined in the metadata structure definition.
798 798  
799 799  Derivation:
757 +* //com:AnnotableType// (extension) 
758 +** //ReportedAttributeType//
800 800  
801 -//com:AnnotableType// (extension) 
802 - //ReportedAttributeType//
803 -
804 804  Attributes:
805 -
806 806  id?, value?, isMetadataAttribute?
807 807  
808 808  Content:
809 -
810 810  com:Annotations?, (com:Text+ | com:StructuredText+)?, AttributeSet?
811 811  
812 812  Attribute Documentation:
813 -
814 814  |**Name**|**Type**|**Documentation**
815 815  |id|com:IDType|The id attribute identifies the metadata attribute that the value is being reported for. This is optional and not expected to be supplied as the metadata structure definition specific schema will specify a fixed value such that the reference to the metadata attribute will always be available if required for processing.
816 816  |value|xs:anySimpleType|The value attribute holds any simple value for the metadata attribute. This attribute is un-typed such that the metadata structure definition specific schema can specify any simple type according the text format / local representation defined by the metadata structure definition.
... ... @@ -817,7 +817,6 @@
817 817  |isMetadataAttribute (fixed: true)|xs:boolean|The isMetadataAttribute attribute is a fixed boolean (true) and is intended to designate to processing applications that a given element represents a reported attribute. This attribute is qualified (meaning that it will be qualified in an instance with the target namespace) to ensure that it can be properly identified by applications. The purpose of this is to allow applications to identify elements with unknown names as reported attributes so that they may process a metadata structure definition specific instance without knowledge of the underlying metadata structure definition.
818 818  
819 819  Element Documentation:
820 -
821 821  |**Name**|**Type**|**Documentation**
822 822  |com:Annotations|com:AnnotationsType|Annotations is a reusable element the provides for a collection of annotations. It has been made global so that restrictions of types that extend AnnotatableType my reference it.
823 823  |com:Text|com:TextType|Text is used to supply parallel multi-lingual textual values for the reported metadata attribute. This will be used if the text format of the metadata attribute has a type of string and the multi-lingual value is set to true.
... ... @@ -824,9 +824,10 @@
824 824  |com:StructuredText|com:XHTMLType|StructuredText is used to supply parallel multi-lingual structured (as XHTML) textual values for the reported metadata attribute. This will be used if the text format of the metadata attribute has a type of XHTML and the multi-lingual value is set to true. If the multi-lingual flag is not set to true, it is expected that the maximum occurrence of this will be refined to be 1 in the metadata structure definition specific schema.
825 825  |AttributeSet|xs:anyType|AttributeSet contains the reported metadata attribute values for the child metadata attributes. This element is unqualified and un-typed so that it can refined by the metadata structure definition specific schema to validate that the reported metadata attributes conform to those prescribed by the metadata attribute definition. The content of this must be element only, and these elements must always represent a reported attribute. Since this can not be strictly enforced in XML Schema, additional steps have been added to make generic processing of this element simpler. When processing this element, any element found with the attribute isMetadataAttribute in this target namespace is assumed to be a reported metadata attribute and can be processed as such.
826 826  
827 -1. Mapping to Structure-Specific Schemas
828 -11. General
779 += Mapping to Structure-Specific Schemas =
829 829  
781 +== General ==
782 +
830 830  Data structure and metadata structure-specific schemas are each based on one single core construct found in their respective structure-specific namespaces;
831 831  
832 832  Data  - http:~/~/www.SDMX.org/resources/SDMXML/schemas/v2_1/data/structurespecific
... ... @@ -835,9 +835,7 @@
835 835  
836 836  For a metadata structure, only a single schema will be created for the entire structure definition. For data structures, many variations of the base schema are possible, each specific as to how the data is organised. This will be discussed in more details in the specific rules for the data structure schemas.
837 837  
838 -1.
839 -11.
840 -111. Basic Terminology
791 +=== Basic Terminology ===
841 841  
842 842  In the subsequent sections, the following namespace prefixes are used:
843 843  
... ... @@ -883,8 +883,7 @@
883 883  
884 884  **XML Attribute:** Refers to the definition of an XML attribute for a complex type (i.e. and xs:attribute element in a xs:complexType element). An attribute must define a name and type (name and type attributes) and may also specify a usage (use attribute).
885 885  
886 -1.
887 -11. Namespace Rules
837 +== Namespace Rules ==
888 888  
889 889  Each format specific schema will specify its namespace in the target namespace of the schema (the targetNamespace attribute of the schema). This document also assumes that the root namespace (that which is defined by the xmlns attribute) of the schema will be the same as the target namespace. Therefore any types or global elements referenced in these descriptions without a namespace prefix are assumed to be in the format specific namespace.
890 890  
... ... @@ -892,21 +892,17 @@
892 892  
893 893  For the purpose of the descriptions here, the default element form for the schema (as specified in the elementFormDefault attribute of the schema) is “qualified", and the default attribute form (as specified in the attributeFormDefault attribute of the schema) is "unqualified".
894 894  
895 -1.
896 -11. General Rules
845 +== General Rules ==
897 897  
898 898  The following section details the general rules which apply to all structure specific schema creation.
899 899  
900 -1.
901 -11.
902 -111. Component Name Determination
849 +=== Component Name Determination ===
903 903  
904 904  When required to create an XML element or attribute, the name for a component is always its identifier. However, the identifier may be inherited. Therefore, the general rules is as follows:
905 905  
906 -1. If the component defines an identifier, the element or attribute name is the value of that identifier
907 -1. Otherwise, the element or attribute name is the identifier of the concept from which it takes its semantic (Note that this is technically the component identifer).
908 -11.
909 -111. Representation Determination
853 +If the component defines an identifier, the element or attribute name is the value of that identifier
854 +Otherwise, the element or attribute name is the identifier of the concept from which it takes its semantic (Note that this is technically the component identifer).
855 +Representation Determination
910 910  
911 911  Every component has a representation associated with it, whether it is defined as a local representation in the component definition, or it is inherited from the concept from which the component takes it semantic (as defined in the concept identity of the component).
912 912  
... ... @@ -920,40 +920,27 @@
920 920  
921 921  A text format consists of a data type and an optional collection of facets. It is the combination of these which determine the exact nature of the component representation. An enumeration consists of a reference to an item scheme, for which an enumerated list of possible values can be created.
922 922  
923 -1.
924 -11.
925 -111. Simple / Primitive Type Determination
869 +=== Simple / Primitive Type Determination ===
926 926  
927 927  For any given representation, there exist rules for determining the simple or primitive type which should be used to validate the value. There are no specific requirements to how a simple type is named or if it is referenced or used as an anonymous type. This section simply serves to state the requirements of the type for a component based on its [[determined representation>>path:#_Representation_Determination:]].
928 928  
929 929  For example, a dimension may inherit its representation for a concept, and the data type of a representation data type may be a String. The simplest solution would be to use the xs:string primitive type. However, an implementer may have chosen to generate simple types for all concepts to avoid having to look up the concept core representation for very component. In this case, the type may be given a name based on the concept and be a simple derivation from the xs:string type that places no further restrictions. The result would be that the type that is actually used for the dimension, although named after the concept, is effectively the required xs:string. These rules are meant to allow such flexibility in how types are created. The only requirement is that the type meet the requirements stated here.
930 930  
931 -1.
932 -11.
933 -111. Representation with Enumeration
875 +=== Representation with Enumeration ===
934 934  
935 935  A representation which defines an enumeration will result in a simple type that is a restriction of the common:IDType. The simple type will define enumerations for each item in the item scheme. The value for these enumerations will be identifier of the item. If desired, the names of the item may be placed in the documentation of the enumeration, but this is not required. Example:
936 936  
937 937  
938 -<xs:simpleType name="ESTAT.CL_COUNTRY.1.0">
880 +> <xs:simpleType name="ESTAT.CL_COUNTRY.1.0">
881 +> <xs:restriction base="common:IDType">
882 +> <xs:enumeration value="BE">
883 +> <xs:annotation>
884 +> <xs:documentation xml:lang="en">Belgium</xs:documentation>
885 +> </xs:annotation>
886 +> </xs:enumeration>
939 939  
940 -<xs:restriction base="common:IDType">
888 +=== Representation with Text Format ===
941 941  
942 -<xs:enumeration value="BE">
943 -
944 -<xs:annotation>
945 -
946 -<xs:documentation xml:lang="en">Belgium</xs:documentation>
947 -
948 -</xs:annotation>
949 -
950 -</xs:enumeration>
951 -
952 -
953 -1.
954 -11.
955 -111. Representation with Text Format
956 -
957 957  A representation which defines a text format will result in a simple type or primitive type. The first step is to determine the base type from the text format data type:
958 958  
959 959  |**SDMX Data Type**|**XML Schema Data Type**
... ... @@ -1014,9 +1014,7 @@
1014 1014  
1015 1015  Any other facets are informational only, and will not affect the determined type.
1016 1016  
1017 -1.
1018 -11.
1019 -111. //Type Names//
950 +=== Type Names ===
1020 1020  
1021 1021  These rules will only dictate type names where absolutely necessary. In all other cases, it is the decision of the implementer as to how to name or use the type. It is also the implementer's requirement to ensure that any type name is properly unique within its scope. To assist in this, the following recommendations are offered for naming types such that they are unique.
1022 1022  
... ... @@ -1043,16 +1043,13 @@
1043 1043  
1044 1044  Only the constructs that will be detailed in the data and metadata structure-specific rules below are required to be in the specified target namespace of the structure-specific schema. So long as any other generated type conforms to the rules specified, it may exist in any namespace.
1045 1045  
1046 -1.
1047 -11. Data Structure Specific Schema
977 +== Data Structure Specific Schema ==
1048 1048  
1049 1049  Separate schemas will be created for the data structure depending on which dimension occurs at the observation level, and whether explicit measures are used in the case that the observation dimension is the measure dimension. The recommended target namespace of the data structured specific schema is: [Data Structure URN]:ObsLevelDim:[Observation Dimensions](:explicit)?. Note that the explicit trailer is only used when the measure dimension is used at the observation level and the explicit measure concepts are to be used.
1050 1050  
1051 1051  The rules for generating the data structure specific-schema are broken into sections based on the level within the structure (i.e. data set, group, series, observation). Each section will state the rules for each variation of the structure specific format.
1052 1052  
1053 -1.
1054 -11.
1055 -111. DataSetType
983 +=== DataSetType ===
1056 1056  
1057 1057  A complex type named DataSetType must be created. Its content model will be derived via restriction. If the dimension at the observation level is the time dimension (TIME_PERIOD) the base type of the restriction is dsd:TimeSeriesDataSetType. Otherwise, the base type of the restriction is dsd:DataSetType. The complex type content model will be as follows:
1058 1058  
... ... @@ -1066,8 +1066,9 @@
1066 1066  1. If the reporting year start day attribute is not declared in the data structure definition or if it is declared but does not declare an attribute relationship of None, an attribute named REPORTING_YEAR_START_DAY with a type of xs:gMonthDay and a usage of prohibited
1067 1067  1. An attribute for each attribute defined in the data structured definition that declares an attribute relationship of None. The XML attribute [[name>>path:#_Component_Name_Determination]] and [[type>>path:#_Simple_/_Primitive]] are defined according to the general rules defined in the previous section, and the usage is optional
1068 1068  11.
1069 -111. GroupType
1070 1070  
998 +=== GroupType ===
999 +
1071 1071  If the data structure definition defines only one group, a complex type with its name taken from the identifier of the lone group must be defined. This type is used for the Group element in the DataSetType. Its content model will be derived via restriction of the dsd:GroupType. The complex type content model will be as follows:
1072 1072  
1073 1073  1. A sequence consisting of:
... ... @@ -1094,9 +1094,9 @@
1094 1094  1. If the reporting year start day attribute is not declared in the data structure definition or if it is declared but does not declare an attribute relationship with the group and does not specify the group as an attachment group, an attribute named REPORTING_YEAR_START_DAY with a type of xs:gMonthDay and a usage of prohibited
1095 1095  1. An attribute for each attribute defined in the data structure that declares an attribute relationship with the group or specifies the group as an attachment group. The XML attribute [[name>>path:#_Component_Name_Determination]] and [[type>>path:#_Simple_/_Primitive]] are defined according to the general rules defined in the previous section, and the usage is optional
1096 1096  1. An attribute named type with a type of Group.ID, usage of optional, and a fixed value of the identifier of the group
1097 -11.
1098 -111. SeriesType
1099 1099  
1027 +=== SeriesType ===
1028 +
1100 1100  If the dimension at the observation is not AllDimensions, a complex type name SeriesType must be created. Its content model will be derived via restriction. If the dimension at the observation level is the time dimension (TIME_PERIOD) the base type of the restriction is dsd:TimeSeriesType. Otherwise, the base type of the restriction is dsd:SeriesType. The complex type content model will be as follows:
1101 1101  
1102 1102  1. A sequence consisting of:
... ... @@ -1105,9 +1105,9 @@
1105 1105  1. An attribute for each dimension defined by the data structure definition, except for the dimension at the observation level. The XML attribute [[name>>path:#_Component_Name_Determination]] and [[type>>path:#_Simple_/_Primitive]] are defined according to the general rules defined in the previous section, and the usage is required
1106 1106  1. If the reporting year start day attribute is not declared in the data structure definition or if it is declared and declares an attribute relationship of None, or with a group, or the dimension at the observation level, or specifies a group as an attachment group, an attribute named REPORTING_YEAR_START_DAY with a type of xs:gMonthDay and a usage of prohibited
1107 1107  1. An attribute for each attribute defined in the data structure that declares an attribute relationship with any dimension outside of the dimension at the observation level (so long as it does not also declare an attachment group). The XML attribute [[name>>path:#_Component_Name_Determination]] and [[type>>path:#_Simple_/_Primitive]] are defined according to the general rules defined in the previous section, and the usage is optional
1108 -11.
1109 -111. ObsType
1110 1110  
1038 +=== ObsType ===
1039 +
1111 1111  A complex type name ObsType must be created. Its content model will be derived via restriction. If the dimension at the observation level is the time dimension (TIME_PERIOD) the base type of the restriction is dsd:TimeSeriesObsType. Otherwise, the base type of the restriction is dsd:ObsType. If the explicit measure option is used, this complex type must be abstract. The complex type content model will be as follows:
1112 1112  
1113 1113  1. A sequence consisting of:
... ... @@ -1130,9 +1130,7 @@
1130 1130  
1131 1131  The rules for generating the data structure specific-schema are broken into sections based on the level within the structure (i.e. metadata set, metadata targets, reports, metadata attributes). These rules will recommend names for generated types, and will refer back to these names throughout the description. These names are simply recommendations that should produce a unique name, but there is no requirement to use them. When a name is required, it will be made clear this is the case.
1132 1132  
1133 -1.
1134 -11.
1135 -111. MetadataSetType
1062 +=== MetadataSetType ===
1136 1136  
1137 1137  A complex type that must be named MetadataSetType must be created. Its content model will be derived via restriction of the base type, msd:MetadataSetType. The complex type content model will be as follows:
1138 1138  
... ... @@ -1184,9 +1184,10 @@
1184 1184  111. A local element named Ref, with a form of unqualified and a the type defined above as is [metadata target].[target object].Ref
1185 1185  111. A local element named URN, with a form of unqualified, a minimum occurrence of 0, and the type defined above as [item scheme agency].[item scheme identifier].[item scheme version].URN
1186 1186  11. A local element named URN, with a form of unqualified, and the type defined above as [item scheme agency].[item scheme identifier].[item scheme version].URN
1187 -111.
1188 -1111. Identifiable Object Target Type Determination
1189 1189  
1115 +
1116 +==== Identifiable Object Target Type Determination ====
1117 +
1190 1190  An identifiable object target is meant to reference an SDMX identifiable object. In the metadata structure specific schema, the complex type which defines the reference is restricted according to the local representation and object type of the identifiable object target. If the identifiable object target does not provide an enumeration in its local representation, then the complex type for the target object is the specific reference type from the common namespace, based on the object type defined by the target object. For example, if the object type is DataProivder, the type will be common:DataProviderReferenceType. The general rule for the name of this type is common:[object type]ReferenceType.
1191 1191  
1192 1192  If the target object defines an enumeration in its local representation, then the declared object type must be for the items contained the enumeration's referenced item scheme. If this is not true, the reference type as defined above is the type for the target object.
... ... @@ -1203,9 +1203,9 @@
1203 1203  1. An attribute named maintinableParentID with a type of common:IDType, a use of required, and a fixed value of the identifier of the item scheme referenced from the enumeration
1204 1204  1. An attribute named maintainableParentVersion with a type of common:VersionType, a use of optional, and a fixed value of the version of the item scheme referenced from the enumeration
1205 1205  1. An attribute named id, with a use of option, and the type defined above as [item scheme agency].[item scheme identifier].[item scheme version].ID.
1206 -11.
1207 -111. ReportType
1208 1208  
1135 +=== ReportType ===
1136 +
1209 1209  A simple type with a recommend name of Report.ID must be created. This must restrict the common:IDType. For each report structure defined by the metadata structure definition, an enumeration will be created within the restriction with a value of the report structure identifier.
1210 1210  
1211 1211  An abstract complex type with a recommended name of ReportType must be created. Its content model will be derived via restriction of the msd:ReportType. The complex type content model will be as follows:
... ... @@ -1253,17 +1253,16 @@
1253 1253  1.
1254 1254  11. A local element named AttributeSet with a form of unqualified and a type as defined according to the rules defined in Attribute Set Complex Type Creation
1255 1255  1. An attribute named id with the type previously defined as Report.ID, a use of optional, and a fixed value of [report structure identifier]
1256 -11.
1257 -111.
1258 -1111. Attribute Set Complex Type Creation
1259 1259  
1185 +=== Attribute Set Complex Type Creation ===
1186 +
1260 1260  An attribute set is created for a report structure or a metadata attribute which contains child metadata attributes. This type is a complex type with a recommend name of [report structure identifier].[nested metadata attribute identifier].AttributeSet, where the metadata attribute section only applies to attribute sets created for metadata attributes and is assumed to consist of the full hierarchy of the metadata attribute's definition. This complex type must consists of:
1261 1261  
1262 1262  1. A sequence consisting of:
1263 1263  11. A local element for each metadata attribute defined as a direct child of the object for which the attribute set is being created. The recommended name of this element is [metadata attribute identifier] and it has a form of unqualified. If the metadata attribute defines a minOccurs and maxOccurs, these values are translated to this element. The type of this element is the type previously created as [report structure identifier].[nested metadata attribute identifier].
1264 1264  
1265 -1. Special data functions
1266 -11. Updates
1192 += Special data functions =
1193 +== Updates ==
1267 1267  
1268 1268  Both the generic and the structure-specific data messages allow for incremental updating of data. This purpose is noted in the action for the data set, which is either inherited from the header of the data message or explicitly stated at the data set level.
1269 1269