[tei-council] Strange validation problem with ODD file

Martin Holmes mholmes at uvic.ca
Mon Jun 25 12:56:30 EDT 2012


Hi all,

I'm working on a fairly simple ODD file and getting a validation error 
that I can't figure out. I'm working in Oxygen and letting Oxygen 
validate against the latest TEI framework release, installed from 
oxygen-tei, and getting a series of errors.

But if I validate against the latest release of tei_all, here:

<http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng>

there's no error.

The first error I'm getting  is this:

E [Jing] element "editionStmt" not allowed here; expected element 
"extent" or "publicationStmt"

but it makes no sense to me because <editionStmt> should come before 
<publicationStmt>. There's a series of similar errors.

  The header looks like this:

   <teiHeader>
     <fileDesc>
       <titleStmt>
         <title>TEI Customization for Map of London project</title>
         <author>Martin Holmes</author>
       </titleStmt>
       <editionStmt>
         <edition>Originally generated on 
<date>2012-06-19T14:04:46Z</date> </edition>
       </editionStmt>
       <publicationStmt>
         <p>See publication statement for Map of Early Modern London 
project.</p>
       </publicationStmt>
       <notesStmt>
          <note type="ns">http://www.example.org/ns/nonTEI</note>
       </notesStmt>
       <sourceDesc>
         <p>generated by oddbyexample.xsl, based on analyzing 817 files from
           /home/mholmes/WorkData/english/map_of_london/temp/. Subsequently
         modified manually several times, most significantly to allow 
the use
         of XInclude elements. </p>
       </sourceDesc>
     </fileDesc>
   </teiHeader>

As far as I can see, my document follows the sequence of fileDesc 
elements shown in the Guidelines:

<http://www.tei-c.org/release/doc/tei-p5-doc/en/html/HD.html#HD2>

i.e. <titleStmt>, <editionStmt>, <publicationStmt>, <notesStmt>, 
<sourceDesc>.

If anyone else has installed the latest TEI framework from oxygen-tei, 
could you check whether your teiHeaders are validated correctly? If 
there's a problem with the TEI framework, we should catch it before 
Oxygen do their release this week.

Cheers,
Martin

-- 
Martin Holmes
University of Victoria Humanities Computing and Media Centre
(mholmes at uvic.ca)



More information about the tei-council mailing list