DARIAH-ERIC / lexicalresources

Data space of the DARIAH Lexical Resources Working Group
https://dariah-eric.github.io/lexicalresources/
BSD 2-Clause "Simplified" License
18 stars 24 forks source link

Mandatory @xml:id attribute on the root TEI element? #208

Open daliboris opened 8 months ago

daliboris commented 8 months ago

The @xml:id attribute is mandatory on the <entry> element for referencing (usually within the dictionary itself, but not always).

Should this attribute also be mandatory for the root element <TEI> for referencing the whole dictionary?

For example second edition of the same work.

laurentromary commented 8 months ago

Well @xml:id is intended to identify a unique element within a document (it's a core XML mechanism) and it makes no real sense to have it on a root element. The exception would be, taking up your use case, if you have two editions within a <teiCorpus> with more than one <TEI> element inside. If you really want to attach a unique identifier, you should have it within an <idno> in the <publicationStmt> of your document.