Opened 12 years ago
Closed 12 years ago
#1050 closed defect (fixed)
Add URI lookup entry to mcp 1.4 oasis-catalog.xml; typo error in mcp 1.4 oasis-catalog.xml
Reported by: | awalsh | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | v2.8.0 RC0 |
Component: | Metadata standards | Version: | v2.8.0RC0 |
Keywords: | schematron, codelist validation, oasis catalog | Cc: |
Description
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"/>
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in commit 4bd3d985c8d100c1db3318097882a5ce0905e38d
Note: changing the codelist URL from http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml to http://bluenet3.antcrc.utas.edu.au/mcp-1.4/resources/Codelist/gmxCodelists.xml takes place as part of the update-fixed-info.xsl (this is executed before validation because the record is always saved before validating).
Thanks Andrew - I have fixed this as part of #1043 - I'll close both when I commit that after I get round to testing it.