Hi
I have a metadata with this schemaLocation:
xsi:schemaLocation="*http://www.isotc211.org/2005/srv
<http://www.isotc211.org/2005/srv>
http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd
<http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd>\*">
that reports some validation issues like:
cvc-elt.1: Cannot find the declaration of element 'gmd:MD_Metadata'.
(Element: gmd:MD_Metadata with parent element: Unknown)
Removing the schemaLocation or changing it to:
xsi:schemaLocation="*http://www.isotc211.org/2005/gmd
<http://www.isotc211.org/2005/gmd> http://www.isotc211.org/2005/gmd/gmd\.xsd
<http://www.isotc211.org/2005/gmd/gmd.xsd> *http://www.isotc211.org/2005/srv
http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd"
validates fine. I guess that this is related to the xsd resolution, but can
someone explain how does this work?
In oasis-catalog.xml it's defined this mapping:
<system systemId="http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd
" uri="schema/srv/srv.xsd"/>
I would expect that if GeoNetwork finds the following declaration in the
metadata, uses the local srv.xsd, but seem for some reason is not able to
resolve the gmd.xsd and that causes the error related to Cannot find the
declaration of element 'gmd:MD_Metadata':
xsi:schemaLocation="*http://www.isotc211.org/2005/srv
<http://www.isotc211.org/2005/srv>
http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd
<http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd>\*">
Any feedback would be appreciated.
Thanks and regards,
Jose García
--
* GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/> for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 13 6721 WD BennekomThe
Netherlandshttp://GeoCat.net/> *