Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validation produces spurious errors #46

Closed
mbjones opened this issue Jan 24, 2020 · 0 comments · Fixed by #47
Closed

validation produces spurious errors #46

mbjones opened this issue Jan 24, 2020 · 0 comments · Fixed by #47

Comments

@mbjones
Copy link
Member

mbjones commented Jan 24, 2020

Validating the eml-sample.xml file that ships with EML 2.2.0 produces spurious errors.

> eml_validate("eml-sample.xml", schema = NULL)
[1] FALSE
attr(,"errors")
[1] "parent of any annotation must have id unless annotation contains a references attribute"
Warning message:
In eml_additional_validation(doc, encoding = encoding) :
  Document is invalid. Found the following errors:
 parent of any annotation must have id unless annotation contains a references attribute
mbjones added a commit to mbjones/emld that referenced this issue Jan 24, 2020
XPAth was referencing the element rather than the attribute `references`. Closes ropensci#46.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant