title: How to customize TEI scheme / how to add custom attributes to TEI Doc?
body: <p>I want to use the teiCorpus element/scheme that can be found in Oxygen XML to structure a corpus. Sadly i dont know where to add attributes like <code>&lt;date&gt;</code> or <code>&lt;mediatype&gt;</code>. I tried to put them into the header or into the body but Oxygen doesn't validate the document because these attributes are not allowed where I put them. I also tried to use something like <code>&lt;p class="mediatype"&gt;</code> in the body, but the <code>"class='mediatype'"</code> doesnt seem to work either. Do I need to change the dtd to make it work or is there an other possibility? </p>
  
  <p>Because I was asked, here is some example code:</p>
  
  <pre><code>&lt;teiCorpus xmlns="http://www.tei-c.org/ns/1.0"&gt;
      &lt;teiHeader&gt;
          ....
      &lt;/teiHeader&gt;
      &lt;TEI xml:id="MyTextNumber1"&gt;
          &lt;teiHeader&gt;
              &lt;fileDesc&gt;
                  &lt;titleStmt&gt;
                  &lt;/titleStmt&gt;
                  &lt;publicationStmt&gt;
                  &lt;/publicationStmt&gt;
                  &lt;sourceDesc&gt;
                  &lt;/sourceDesc&gt;
              &lt;/fileDesc&gt;
          &lt;/teiHeader&gt;
          &lt;text&gt;
              &lt;body&gt;
              &lt;/body&gt;
          &lt;/text&gt;
      &lt;/TEI&gt;
  &lt;/teiCorpus&gt;
  </code></pre>
  
  <p>I want to put custom attributes like "mediatype" or "date" in there, as i would in a normal xml file. I tried nearly every option, but i only get error codes like <code>"element "date" not allowed here; expected the element end-tag or element ..."</code>
  How do i implement custom attributes in TEI? Is it possible?</p>