Thank you for the prompt response!
The only part of the file I have edited, compared to the one referenced from 
Github, is in the beginning, the properties for
 <xsl:param name="prefix"> and <xsl:param name="publisher">

I have tested with some alternative versions of DIM2DataCite.xsl published in 
an August commit and the error is always in the same line of the resourceType 
element.
https://github.com/DSpace/DSpace/blob/e8a2e73fcc9b7944408daf6a6f683b69939949cd/dspace/config/crosswalks/DIM2DataCite.xsl#L242
 
Our institution 's metadata is in Greek (language code: el), dc.type field is 
required and filled for all repository items and it works effortlessly for 
Datacite Schema v.3

Is there some other configuration file (i.e. pom.xml, spring...) that I should 
declare the new Datacite Schema version?

Many thanks,
Kiriaki

-----Original Message-----
From: [email protected] 
<[email protected]> On Behalf Of [email protected]
Sent: Monday, October 7, 2024 5:22 PM
To: [email protected]
Subject: Re: [dspace-tech] Error loading DataCite schema v.4 crosswalk 
stylesheet

On Mon, Oct 07, 2024 at 12:16:32PM +0000, Kiriaki Roditi wrote:
> You don't often get email from [email protected]. Learn why this is 
> important<https://aka.ms/LearnAboutSenderIdentification>
> Hello to All,
> 
> Having trouble updating the Datacite crosswalk to use Schema version 4 on a 
> DSpace v.6.3 installation.
> I have updated 
> DIM2DataCite.xsl<https://github.com/DSpace/DSpace/blob/main/dspace/config/crosswalks/DIM2DataCite.xsl>
>  , dspace.fg, local.cfg and DataCiteConnector.java to use 
> http://datacite.org/schema/kernel-4
> 
> The error in the console when I try to update a DOI is
> ERROR:  'Syntax error in ''.'
> FATAL ERROR:  'line 242: Required attribute 'select' is missing.'

It appears that your edited DIM2DataCite.xsl has an error on line 242.
Probably an 'apply-templates' element is missing its required 'select'.

> This is the excerpt from the logs
> ERROR org.dspace.content.crosswalk.XSLTCrosswalk @ Failed to initialize 
> XSLTCrosswalk(DataCite):  
> javax.xml.transform.TransformerConfigurationException: line 242: Required 
> attribute 'select' is missing.
> ERROR org.dspace.identifier.doi.DataCiteConnector @ Caught an 
> CrosswalkException while reserving a DOI for DSO with type 2 and ID 
> 6ba15ba8-0fae-43e7-b7cc-73de23d9098d. Won't reserve the doi.
> org.dspace.content.crosswalk.CrosswalkInternalException: Failed to initialize 
> transformer, probably error loading stylesheet.
>                 at 
> org.dspace.content.crosswalk.XSLTDisseminationCrosswalk.disseminateElement(XSLTDisseminationCrosswalk.java:225)
>                 at 
> org.dspace.identifier.doi.DataCiteConnector.reserveDOI(DataCiteConnector.java:422)
>                 at 
> org.dspace.identifier.doi.DataCiteConnector.updateMetadata(DataCiteConnector.java:582)
>                 at 
> org.dspace.identifier.DOIIdentifierProvider.updateMetadataOnline(DOIIdentifierProvider.java:420)
>                 at 
> org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:594)
>                 at 
> org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:240)
>                 at 
> org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:71)
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                 at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>                 at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at java.lang.reflect.Method.invoke(Method.java:498)
>                 at 
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
>                 at 
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
> ERROR org.dspace.identifier.doi.DOIOrganiser @ It wasn't possible to update 
> this identifier:  doi: Exceptions code:  CONVERSION_ERROR
> org.dspace.identifier.doi.DOIIdentifierException: CrosswalkException occured 
> while converting ITEM/6ba15ba8-0fae-43e7-b7cc-73de23d9098d using crosswalk 
> DataCite.
>                 at 
> org.dspace.identifier.doi.DataCiteConnector.reserveDOI(DataCiteConnector.java:440)
>                 at 
> org.dspace.identifier.doi.DataCiteConnector.updateMetadata(DataCiteConnector.java:582)
>                 at 
> org.dspace.identifier.DOIIdentifierProvider.updateMetadataOnline(DOIIdentifierProvider.java:420)
>                 at 
> org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:594)
>                 at 
> org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:240)
>                 at 
> org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:71)
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                 at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>                 at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at java.lang.reflect.Method.invoke(Method.java:498)
>                 at 
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
>                 at 
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
> Caused by: org.dspace.content.crosswalk.CrosswalkInternalException: Failed to 
> initialize transformer, probably error loading stylesheet.
>                 at 
> org.dspace.content.crosswalk.XSLTDisseminationCrosswalk.disseminateElement(XSLTDisseminationCrosswalk.java:225)
>                 at 
> org.dspace.identifier.doi.DataCiteConnector.reserveDOI(DataCiteConnector.java:422)
>                 ... 11 more
> 
> What am I missing?
> Is there another configuration property that I need to change? Does it have 
> to do with the metadata stored in dc.type field?
> 
> Thank you for your time,
> 
> Kiriaki Roditi
> Systems Engineer
> 
> ________________________________
> ELiDOC Systems & Services
> 
> 
> 
> --
> All messages to this mailing list should adhere to the Code of Conduct: 
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> ---
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to 
> [email protected]<mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dspace-tech/DU0PR10MB7459EBC163D3560C71230205907D2%40DU0PR10MB7459.EURPRD10.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/dspace-tech/DU0PR10MB7459EBC163D3560C71230205907D2%40DU0PR10MB7459.EURPRD10.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
library.indianapolis.iu.edu

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/ZwPukkTJbtOPqy3H%40iu.edu.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/DU0PR10MB74593F52AD149513BC0FB835907E2%40DU0PR10MB7459.EURPRD10.PROD.OUTLOOK.COM.

Reply via email to