#1050: Add URI lookup entry to mcp 1.4 oasis-catalog.xml; typo error in mcp 1.4
oasis-catalog.xml
------------------------------------------------------------+---------------
Reporter: awalsh | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.8.0 RC0
Component: Metadata standards | Version: v2.8.0RC0
Keywords: schematron, codelist validation, oasis catalog |
------------------------------------------------------------+---------------
Using latest GN2.8 the jeeves xmlresolver in conjunction with
the mcp-1.4 oasis-catlog.xml file is failing to resolve
this particular code list URI which is used extensively in existing
production MCP XML metadata:-
<mcp:type>
<mcp:DP_TypeCode
codeList="http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml#DP_TypeCode"
codeListValue="longName" />
</mcp:type>
DEBUG shows that this URI resolves to a non-existent web resource
i.e
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml
2012-09-14 14:54:26,998 DEBUG [jeeves.xmlresolver] - Trying to resolve
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml:file:/C:/ANZMEST_SVN9275/web/geonetwork
/WEB-INF/data/config/schema_plugins/iso19139.mcp-1.4/schematron-rules-iso-
codeListValidation.xsl
2012-09-14 14:54:26,998 DEBUG [jeeves.xmlresolver] - Resolved as
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml
As a result the schematron process of codeList validation for
the mcp schema gmxCodelists.xml#DP_TypeCode was failing.
To fix this add the following to the mcp-1.4 oasis-catalog.xml file:
<uri
name="http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml"
uri="schema/resources/Codelist/gmxCodelists.xml"/>
Then the log shows this resolves OK to a local mcp codeList resource:
2012-09-14 15:40:43,061 DEBUG [jeeves.xmlresolver] - Trying to resolve
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml:file:/C:/ANZMEST_SVN9275/web/geonetwork
/WEB-INF/data/config/schema_plugins/iso19139.mcp-1.4/schematron-rules-iso-
codeListValidation.xsl
2012-09-14 15:40:43,061 DEBUG [jeeves.xmlresolver] - Resolved as
file:C:/ANZMEST_SVN9275/web/geonetwork/WEB-
INF/data/config/schema_plugins/iso19139.mcp-1.4/schema/resources/Codelist/gmxCodelists.xml
There looks like a small typo error in the mcp-1.4 oasis catalog file, an
umatched single
quote ' just before the "http" as follows:
<uri
name="'http://bluenet3.antcrc.utas.edu.au/mcp/schema/resources/Codelist/gmxCodelists.xml"
uri="schema/resources/Codelist/gmxCodelists.xml"/>
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml
<uri
name="'http://bluenet3.antcrc.utas.edu.au/mcp-1.4/schema/resources/Codelist/gmxCodelists.xml"
uri="schema/resources/Codelist/gmxCodelists.xml"/>
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1050>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.