-
Notifications
You must be signed in to change notification settings - Fork 21
ValidationReportXML
Bert Frees edited this page Oct 24, 2016
·
1 revision
This gets output by various validators (DTBook Validator on the "report" port; NIMAS Fileset Validator on several ports). It is a concatenation of all the report types generated by the various validation steps (RelaxNG, Schematron, custom).
There is a Relax NG schema for it here.
<d:document-validation-report xmlns:d="http://www.daisy.org/ns/pipeline/data">
<d:document-info>
<d:document-name>Filename or title</d:document-name>
<d:document-type>What was the document validated as</d:document-type>
<d:document-path>Full path to the document</d:document-path>
<d:report-path>Path to this report</d:report-path>
<d:error-count>Number of errors as an integer</d:error-count>
</d:document-info>
<d:reports>
<d:report type="relaxng">
<d:errors>
<d:error type="relaxng">
<d:desc>Error description from RelaxNG validator output</d:desc>
<d:location line="3" column="44"/>
</d:error>
</d:errors>
<d:report type="schematron">
<svrl:schematron-output>
This comes right from the schematron validator
</svrl:schematron-output>
</d:report>
<d:report type="filecheck">
<d:errors>
<d:error type="file-not-found">
<d:desc>File not found</desc>
<d:file>Broken URI</d:file>
<d:location href="file:/path/document.xml#referringID"/>
</d:error>
</d:errors>
</d:report>
</d:reports>
</d:document-validation-report>
This intermediate format is sent to the Validation Utils step check-files-exist
. The step checks each @path
to see if it exists on disk. The report generated includes @ref
, which should be a reference to the element that points to @path
.
The resulting report from the check-files-exist
step is formatted as a <d:errors>
element, described above.
<d:files xmlns:d="http://www.daisy.org/ns/pipeline/data">
<d:file path="file:/full/path/to/image1.jpg" ref="file:/full/path/to/dtbook.xml#ID"/>
<d:file path="file:/full/path/to/image1.jpg" ref="file:/full/path/to/dtbook.xml#ID"/>
</d:files>
- Home
- Download
-
Help
-
User Guide
- Installation
- Desktop Application
- Web Application
- Pipeline as a Service
- Command Line
-
Scripts
- DAISY 2.02 Validator
- DAISY 2.02 to EPUB 3
- DAISY 3 to DAISY 2.02
- DAISY 3 to EPUB 3
- DTBook Validator
- DTBook to DAISY 3
- DTBook to EPUB3
- DTBook to HTML
- DTBook to ODT
- DTBook to PEF
- DTBook to RTF
- DTBook to ZedAI
- EPUB 2 to EPUB 3
- EPUB 3 Enhancer
- EPUB 3 Validator
- EPUB 3 to DAISY 2.02
- EPUB 3 to DAISY 3
- EPUB 3 to PEF
- EPUB to DAISY
- HTML to DTBook
- HTML to EPUB3
- HTML to PEF
- NIMAS Fileset Validator
- ZedAI to EPUB 3
- ZedAI to HTML
- ZedAI to PEF
- API Documentation
- Issue Tracker
- Troubleshooting
- Forum
- [[Contact|mailto:[email protected]]]
-
User Guide
- Contribute
- DAISY Home