[GeoNetwork-users] Finding the right GML Schema?

In trying to add the UK Gemini 2.2 metadata schema to GeoNetwork 3.0.4/5 I
need to point to the GML 3.2.x schema - but I get the following error if I
set the namespace as xmlns:gml="http://www.opengis.net/gml/3.2"

2016-07-26 15:07:08,564 WARN [geonetwork.datamanager] - WARNING:
evaluating XPath
gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement/gmd:EX_TemporalExtent/gmd:extent/gml:TimePeriod
against metadata failed - XSD validation message: \ncvc-complex-type.2.4.a:
Invalid content was found starting with element 'gml:TimePeriod'. One of '{"
http://www.opengis.net/gml":AbstractTimePrimitive\}' is expected. (Element:
gml:TimePeriod with parent element: gmd:extent) will NOT be shown by the
editor

But it works fine if I use xmlns:gml="http://www.opengis.net/gml" - but
that would be invalid.

The issue seems to be related to the fact the there is a static XMLResolver
which gets modified by the following ISO19139 schema (which uses another
GML - possibly 2.3.1?) and seems to use the unversioned URI as a reference.
Has anyone else seen something similar before I start delving too deeply
into how the resolver works?

Cheers

Ian

--
Ian Turton

For the record, we fixed that with Ian during GeoNetwork workshop at Foss4g
by taking care of gml32 element in
https://github.com/geonetwork/core-geonetwork/blob/develop/schemas/iso19139/src/main/plugin/iso19139/layout/layout-custom-fields.xsl#L159

Cheers.

Francois

2016-07-26 18:59 GMT+02:00 Ian Turton <ijturton@anonymised.com>:

In trying to add the UK Gemini 2.2 metadata schema to GeoNetwork 3.0.4/5 I
need to point to the GML 3.2.x schema - but I get the following error if I
set the namespace as xmlns:gml="http://www.opengis.net/gml/3.2&quot;

2016-07-26 15:07:08,564 WARN [geonetwork.datamanager] - WARNING:
evaluating XPath
gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/
gmd:EX_Extent/gmd:temporalElement/gmd:EX_TemporalExtent/gmd:extent/gml:
TimePeriod
against metadata failed - XSD validation message: \ncvc-complex-type.2.4.a:
Invalid content was found starting with element 'gml:TimePeriod'. One of
'{"
http://www.opengis.net/gml&quot;:AbstractTimePrimitive\}' is expected. (Element:
gml:TimePeriod with parent element: gmd:extent) will NOT be shown by the
editor

But it works fine if I use xmlns:gml="http://www.opengis.net/gml&quot; - but
that would be invalid.

The issue seems to be related to the fact the there is a static XMLResolver
which gets modified by the following ISO19139 schema (which uses another
GML - possibly 2.3.1?) and seems to use the unversioned URI as a reference.
Has anyone else seen something similar before I start delving too deeply
into how the resolver works?

Cheers

Ian

--
Ian Turton
------------------------------------------------------------
------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and
traffic
patterns at an interface-level. Reveals which users, apps, and protocols
are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/
projects/geonetwork