-
Notifications
You must be signed in to change notification settings - Fork 407
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
XML output and error handling #486
Comments
I think with 3.0.1 we used some kind of standard xml format. Seems as this got mixed up or isn't appropriate for the new message format... |
I've used version 4.0.0-alpha11 to generate the output above. Is there a specification available for the new message format? |
Yes, AFAIK @mkraetke is right: the XML output is based on the JHove schema (introduced by @tledoux if I remember correctly). I agree that it would be nice to have an alternative, more detailed format. Note: @mkraetke in case you're interested, see this XSLT example of how EpubCheck's XML is naïvely parsed and converted to a custom format at @daisy. |
Thank you for the example @rdeltour! my colleague @polypunkt developed this XSLT as workaround. But a more detailed XML output would be far better and not hard to develop. |
Note also that with the 4.x branch you can also preoduce JSON output. Also, all errors have a distinct error code so it s/b easier to extract or manipulate the message. |
Well, the JHove schema has at least a What do you think? Otherwise we should probably switch to a new schema.... |
XProcs Error Vocabulary could be an option:
|
Removing from the 4.0 milestone as it is not critical, a better XML output can be added in a later release. |
Thank you. Currently we have a workaround. |
Sure, it's not a critical issue, but changing a report schema is still a major change. Don't you think we should do this in 4.0 rather than in 4.0.2 or 4.1?
Other suggestions? |
It's precisely the problem: I do not have a strong suggestion, as I've personally never had a strong need for change (like @mkraetke I've used workarounds when needed). If changing the report schema is deemed too big a change for a minor version update, we can still release this change as 4.1, 4.2 or whatever when it's ready. I'm not saying that I object to include it in 4.0, it's just that I don't have much time to find the best candidate or contact possible users (via the mailing list) and run a quick survey, so for now I'd rather keep the status quo. |
Schematron Validation Report Language (SVRL) might also provide a declarative markup for a epubcheck XML report. The |
See issue #816 for further discussing a new XML output schema. |
The XML output from epubcheck is very constrained. The message elements contain only a plaintext message with the encountered error.
Currently, automatic error handling is only possible by string analysis. It would be helpful to have attributes besides the error message which provide
The XML output could be read as follows:
The text was updated successfully, but these errors were encountered: