bedebok / prayer-app

0 stars 0 forks source link

XML validation #4

Open simongray opened 1 month ago

simongray commented 1 month ago

Since the XML is either handwritten or generated from handwritten documents, and since the structure seems to be in flux, it may be beneficial to implement some kind of validation early on, to ensure that every document is correct. Documents that aren't can then be "sent back" for corrections.

Some types of validation include

The TEI organisation itself includes a variety of schemas in DTD, XSD and RelaxNG: https://www.tei-c.org/release/xml/tei/custom/schema/

simongray commented 1 month ago

Some basic structure and the keys in use can perhaps be taken from e.g.

simongray commented 1 month ago

It should be possible to define a basic schema based on my talk today with Seán. This can be used both as a safe-guard for myself when integrating data, but perhaps also by Seán to double-check the files before he adds them to the repo.