Closed sdmx3mdt closed 2 years ago
Action with TF3 to make a proposal for TWG consideration.
Isn't the component list in XML an ordered list? Thus, if a tools changes the order of the nodes, it is a bug in the tool? We had a similar discussion in the sorting of code items within a code list .There the default order is the one given by the designer uploading the code list artefact to a registry. Not only within SDMX, but also within XML, no tool should modify that order. For code lists, we have defined an annotation in the controlled vocabulary to override the default order within a specific context. Consequently, and to be consistent, the same approach can be used for dimension order. The position attribute can be removed and in case for some visualisation purposes the positions of dimensions is relevant, the controlled annotation @SDMX.ORDER may be used
@brainwasher To complement your comment: The "annotation in the controlled vocabulary to override the default order within a specific context" for codelists does not replace the fixed order of codes in the codelist. This annotation is for representational purposes only and allows for a language-specific display order in a localised context. The same annotation could indeed be used to allow for a localised display order of components.
The following agreed solution has been implemented:
From Abdulla Gozalov UNSD Received via email 16 July 2021
Summary The SDMX-ML and SDMX-JSON structure message Data Structure Definition "position" attribute is currently optional and for information only, the ordering and position of dimensions being determined solely by their position in the message's DimensionList. As DSDs can be generated using various tools and undergo several transformations it may be difficult to preserve the physical ordering of dimensions with serious implications for the REST API which relies on them being in a fixed and defined sequence.
Solution Options
Email Discussion Trail UNSD dimension position attribute issue.pdf