Closed cboettig closed 5 years ago
The validation rules in EML are now clearly listed here: https://github.com/NCEAS/eml/blob/BRANCH_EML_2_2/docs/eml-validation-refs.md
That document will be part of the EML 2.2.0 release specification.
closed by #26
EML validation imposes additional constraints beyond the XML schema validation. I believe these can be summarized as follows:
id
+system attributes on any element should be unique.<references>
/<describes>
and an attribute calledid
.annotation
needs a subject: either from theid
of its parent or as a child<references>
of the annotation, but not both!eml_validate()
should enforce both of these conditions as well. (Should be possible as simple xpath?)Migrated from https://github.com/ropensci/EML/issues/244.