openaire / guidelines-cris-managers

OpenAIRE Guidelines for CRIS Managers based on CERIF-XML
https://openaire-guidelines-for-cris-managers.readthedocs.io/
6 stars 16 forks source link

validation failure in openaire_cerif_xml_example_projects.xml #141

Closed ACz-UniBi closed 1 year ago

ACz-UniBi commented 1 year ago

Some feedback points us to an issue in the XML example file: samples/openaire_cerif_xml_example_projects.xml

The namespace of

xmlns="https://www.openaire.eu/cerif-profile/vocab/OpenAIRE_Funding_Types"

isn't defined.

ACz-UniBi commented 1 year ago

To solve the issue, please add in the xsi:schemaLocation

https://www.openaire.eu/cerif-profile/vocab/OpenAIRE_Funding_Types https://www.openaire.eu/schema/cris/current/vocabularies/openaire_funding_types.xsd

Replace the whole attribute with

xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd https://www.openaire.eu/cerif-profile/1.1/ https://www.openaire.eu/schema/cris/current/openaire-cerif-profile.xsd https://www.openaire.eu/cerif-profile/vocab/OpenAIRE_Funding_Types https://www.openaire.eu/schema/cris/current/vocabularies/openaire_funding_types.xsd"

The example will be updated soon.

jdvorak001 commented 1 year ago

I'm surprised this should be needed, with regard to the xs:import instruction in the main OpenAIRE schema.

I know some parsers may be puzzled at relative links. I'll try to prepend ./ to make these schema links easier to recognize. Hopefully it resolves the original reporter's problem.