Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Presentation of DTD validator output #17

Open
Klortho opened this issue Aug 11, 2015 · 0 comments
Open

Presentation of DTD validator output #17

Klortho opened this issue Aug 11, 2015 · 0 comments

Comments

@Klortho
Copy link
Member

Klortho commented Aug 11, 2015

Reformat DTD validation error output, with links into listing. Right now, xmllint reports DTD validation errors like this:

not-valid.xml:9: element foo: validity error : No declaration for element foo

            ^
not-valid.xml:10: element journal-meta: validity error : Element journal-meta content does not follow the DTD, expecting (journal-id+ , journal-title-group* , (contrib-group | aff | aff-alternatives)* , issn+ , issn-l? , isbn* , publisher? , notes* , self-uri*), got (foo )

                   ^

The line number is in the error message, and the column number is implicit in the line with the carat. If it is consistent in this output, we can use it to identify the locations in the input file, in the same way that the Schematron validation output currently works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant