open-sdg / sdg-build

Python package to convert SDG-related data and metadata between formats
MIT License
5 stars 23 forks source link

SDMX DSD parsing - only codelists within DSD #358

Open brockfanning opened 1 month ago

brockfanning commented 1 month ago

Right now when SDMX DSD files are parsed for codelists, they are being pulled from the entire SDMX message. However sometimes DSDs are contained within SDMX messages that have other codelists. So, the xpath query that targets the codelists needs to be more specific so that it only gets things inside the DSD.

It is also possible that SDMX messages may contain multiple DSDs. But, we do not need to support this. We should just throw an exception when this is the case. The user will need to correct this.