Open PeterParslow opened 1 year ago
GeoNetwork (at least, my instance!) won't let me create an "xlink only" anchor
~ isn't that the same behaviour discussed by Jo in https://github.com/AGIuk/Schematron/pull/1#issuecomment-622299684
It's the same behaviour but applied to gmx:Anchor rather than gco:CharacterString - and therefore rather different.
I'm proposing that we make the general GEMINI XML requirement not to have empty elements (2.2.10 / Figure 15 at https://www.agi.org.uk/gemini/40-gemini/1048-uk-gemini-encoding-guidance/) more explicit for anchor "even if there is an xlink:href".
gmx:Anchor would have content by-value & by-reference: the ISO 19139 rule only applies to properties, not objects. I'm sure this only applies to anchors, not the other subtypes of CharacterString - 2.2.9 Code lists even says "The element value (i.e. in Figure 13 <gmd:MD_ScopeCode ...>dataset</gmd:MD_ScopeCode>) is human readable text. It can be omitted or given a value different from that of the attribute codeListValue (e.g. Dataset)." (my emphasis)
2.2.10 probably needs a bit of re-wording. "Empty XML elements (see Figure 15) are not permitted in ISO 19139 metadata instances" isn't true & 2.2.1 has several examples of "empty" elements where all the content is by reference: verticalCRS, domainOfValidity, verticalCRS, verticalDatum, srv:operatesOn - but they are all properties, not objects.
data.gov.uk validation rejects a combination of gco:nilReason & an anchor: