Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
245 stars 149 forks source link

gmx:Anchor substituion for gco:CharacterString not validating #152

Open valentinedwv opened 9 years ago

valentinedwv commented 9 years ago

Validation is failing to allow Anchor to substitute for CharacterString in Keywords (any quick patch would be good)

http://schemas.opengis.net/iso/19139/20070417/gmx/extendedTypes.xsd

<xs:element name="Anchor" type="gmx:Anchor_Type" substitutionGroup="gco:CharacterString" />

Trying to import files for NODC. Example file: http://hydro10.sdsc.edu/metadata/NODC/000294EA-2BC7-44A6-8C72-DBD4D14BFF2D.xml

<gmd:descriptiveKeywords>
<gmd:MD_Keywords>
<gmd:keyword xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:xlink="http://www.w3.org/1999/xlink">
      <gmx:Anchor xlink:href="http://accession.nodc.noaa.gov/9500089" xlink:actuate="onRequest">9500089</gmx:Anchor>
</gmd:keyword>
<gmd:thesaurusName></gmd:MD_Keywords>
</gmd:descriptiveKeywords>
valentinedwv commented 9 years ago

Use: xsdlocation=http://www.ngdc.noaa.gov/metadata/published/xsd/schema.xsd

While OxygenXML validates the files, it seems that GP can't find them, so the NOAA hack works by customizing the gmi to include gco, gmx, gss, and the top level schema.xsd includes the srv schemas