geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
412 stars 487 forks source link

Metadata validation error using convertion XSLT iso 19115-3-2014 to iso 19115-3-2018 #5962

Open pepa22 opened 2 years ago

pepa22 commented 2 years ago

Describe the bug I have a xml metadata validated with iso 19115-3 in a Geonetwork versión 3.6 but when i try to validate it in a Geonetwork versión 4. doesn´t work . Error: IllegalArgumentException XSDValidationErrorEx : XSD Validation error(s): ERROR 1 cvc-elt.1.a: Cannot find the declaration of element 'mdb:MD_Metadata'. (Element: mdb:MD_Metadata with parent element: Unknown) .

Steps to reproduce the behavior:

  1. Go to 'upload file from computer'
  2. Click on 'select de xml of the metadata (validated with geonetwork 3.6)'
  3. Scroll down to 'convertion XSLT iso 19115-3-2014 to iso 19115-3-2018'
  4. See error in 'with the validation selected, an IllegalArgumentException error appears'

image

pepa22 commented 2 years ago

and if i ingested the xml without validating it and try to validate it inside the geonetwork (edit metadata). image

dianacrow commented 2 years ago

Has there been an answer to this question yet? TIA DC

pepa22 commented 1 year ago

no, I still couldn't solve the problem. Any help, ideas or advice would be very helpful.

fxprunayre commented 1 year ago

The validation issue reported sounds odd. Maybe check that you don't have a schemaLocation defined which would make the validator validating a 2018 record with the schema from 2014 ?