Best-Practices-for-TEI-in-Libraries icon indicating copy to clipboard operation
Best-Practices-for-TEI-in-Libraries copied to clipboard

rework ODDs into a single file to use new capability for generating multiple schema

Open kshawkin opened this issue 6 years ago • 5 comments

The TEI Council is working on a new capability in the ODD language to allow a single ODD file to be used to generate different schema, with you specifying which one you want at the time of processing. Once this is working, we should rework our ODDs into a single file, which will be much easier to maintain.

kshawkin avatar May 29 '18 16:05 kshawkin

I'm not aware that any new capability is necessary for this. It doesn't work in Roma but there's quite a lot besides this that Roma doesn't do. When you do get round to thinking about this again, may I suggest that an odd chaining approach might be simple r.

lb42 avatar May 29 '18 16:05 lb42

Right, @lb42. @kshawkin had the tense wrong: it is the use of the --selectedSchema switch we are thinking of. Back when I invented our current convoluted system --selectedSchema did not exist or did not work at all; but now it works reasonably well, but has at least 1 bug that would hold us back. (I forgot the details, but in at least some circumstances a <specGrp> gets included in the output schema even though it is not referenced by anything inside the <schemaSpec> being processed.)

ODD chaining is, of course, a very reasonable approach to investigate. But in the meantime, as soon as the bugs for schema selection are fixed, I think we should switch to a single ODD file.

sydb avatar May 29 '18 16:05 sydb

Have you raised an issue for this bug or bugs? I saw MSM did, but then retracted it.

lb42 avatar May 29 '18 20:05 lb42

Oh, right! I had completely forgotten about the retraction. Maybe it won’t be a problem after all …

sydb avatar May 31 '18 22:05 sydb

Syd realizes that while we could now do this, the current ODD processor would generate documentation as separate files for each level as well, which isn't what we want for the BPTL. So we'll leave the ODDs as they are for now.

kshawkin avatar Jul 10 '18 14:07 kshawkin