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

.rng file incorrectly flags authority tag as not allowed within publicationStmt #202

Open leftyveggie opened 10 months ago

leftyveggie commented 10 months ago

The use of authority tag within the publicationStmt in the teiHeader returns the following error:

element "authority" not allowed here; expected the element end-tag or element "availability", "date", "idno", "pubPlace" or "ref"xml(out_of_context_element)

MWE:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://raw.githubusercontent.com/DARIAH-ERIC/lexicalresources/master/Schemas/TEILex0/out/TEILex0.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
   <teiHeader>
      <fileDesc>
         <titleStmt>
            !<-- ... -->
         </titleStmt>
         <publicationStmt>
            <publisher>X Press</publisher>
            <pubPlace>YYY</pubPlace>
            <date>20ZZ</date>
            <authority>A University</authority>
         </publicationStmt>

However, the specification implies that this is allowed: https://dariah-eric.github.io/lexicalresources/pages/TEILex0/spec.html#TEI.publicationStmt

Please could you advise which is correct?