Closed jodygarnett closed 1 year ago
Please note that the HNAP 3.6.x branch is being developed against 3.6.2-SNAPSHOT, which must be internal FGP fork (as the core-geonetwork 3.6.x branch uses 3.6.1-SNAPSHOT.
Thanks for the changes @josegar74 they make sense to me.
I am considering this PR approved ... and just blocked until @bo-lu is in position to update schemas.metadata.geo.ca content.
The new schemes.metadata.geoca location is available and this work can be merged.
I have tested again using the Validate.java
program to confirm each document downloaded will validate against the new official location.
The documents are indeed working correctly against https://schemas.metadata.geo.ca
.
However when using the built-in java xerces parser some errors are found:
test-record7.xml (935, 85) ERROR: cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'roleType'.
test-record7.xml (935, 85) ERROR: cvc-attribute.3: The value '' of attribute 'xlink:role' on element 'gmd:onLine' is not valid with respect to its type, 'roleType'.
This appears to be a useful report not produced by the Saxon parser:
<gmd:transferOptions>
<gmd:MD_DigitalTransferOptions>
<gmd:onLine xmlns:xlink="http://www.w3.org/1999/xlink" xlink:role="">
<gmd:CI_OnlineResource>
<gmd:linkage>
<gmd:URL>https://geoportal.gov.mb.ca/datasets/manitoba::manitoba-parks-winter-trails-and-recreation-areas-1.csv?outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D</gmd:URL>
The same document validates correctly from the geonetwork editor using saxon parser which is odd.
These cvc-minLength
errors are not seen on documents produced by 3.12.x
and 4.2.x
branches, which produce:
<gmd:onLine xlink:role="urn:xml:lang:eng-CAN">
This is NOT back-port of https://github.com/metadata101/iso19139.ca.HNAP/pull/323 to avoid introducing unnecessary changes; however search and replaces changes and commit messages were used to help cross-compare.