Description
The schema now raises an error when a <bibl>
element has no <ptr>
child. This is all right, but it creates a problem that I think is not unique to my subcorpus. Sometimes, there exists no secondary bibliography and/or no primary bibliography for an inscription (or none is encoded yet), but I would prefer to keep the skeleton of that section in the XML file, in case it can be populated later. My solution so far has been to use
<listBibl type="primary">
<bibl/>
</listBibl>
where the empty <bibl/>
element is necessary because without it, the earlier schema also raised an error. But now the above is also flagged as an error. I could imagine the following solutions, but I don't know which if any are most feasible:
- adding an exception to the schema rule: if empty
<bibl/>
(or empty<bibl n="siglum"/>
, see below) is the only child of a<listBibl>
, then the absence of<ptr>
is not an error (most convenient for me, since I can keep what I have); - creating a special bibliography item (e.g.
#bib:NONE)
that would mean "no known bibliography" and instead of<bibl/>
, encode e.g.<bibl><ptr target="bib:NONE"/></bibl>
(I would then replace my empty bibl items with this); - keeping the schema as is, and I remove the offending empty bibl elements together with their
<listBibl>
container.
What do you think, @michaelnmmeyer ?
I should add that I've just checked our inscription templates, and the use of empty <bibl/>
(or <bibl n="siglum"/>
in case of the primary bibliography) is present there too, so at the moment, even our template is in conflict with the schema.