NFDI4Chem / oai4schemas

This repo contains a XML schema that can embed JSON+LD (bio)schema metadata, crosswalks and examples. They are designed to work with https://radar.products.fiz-karlsruhe.de/en/radarfeatures/radar-oai-provider.
Apache License 2.0
2 stars 0 forks source link

Cleanup Namespaces in OAI-DC converted metadata #2

Open sneumann opened 1 year ago

sneumann commented 1 year ago

Hi, currently, the OAI-DC that is converted by the json_container2oai_dc.xslt contains some superfluous namespaces: both https://github.com/NFDI4Chem/oai4schemas/blob/5296d8bb3dee694a6d9257f552334fb824439210/examples/oai_dc-MIIFHRBUBUHJMC-UHFFFAOYSA-N.1.xml#L2 and https://github.com/NFDI4Chem/oai4schemas/blob/5296d8bb3dee694a6d9257f552334fb824439210/examples/oai_dc-MIIFHRBUBUHJMC-UHFFFAOYSA-N.1.xml#L3 would not be needed. They are somehow leftovers of the XSLT https://github.com/NFDI4Chem/oai4schemas/blob/5296d8bb3dee694a6d9257f552334fb824439210/json_container2oai_dc.xslt#L5 where they are needed during processing of the JSON input with

java -jar /usr/share/java/Saxon-HE-9.9.1.5.jar \
    -s:10.14272-MIIFHRBUBUHJMC-UHFFFAOYSA-N.1.xml  \
    -xsl:json_container2oai_dc.xslt

I think that is mostly cosmetic, but any suggestions and improvements to the XSLT are welcome. Yours, Steffen