<?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.tei-c.org/ns/1.0" xml:id="learn_docRelationToOdd" resp="or:odd_HOUL3_wtm or:odd_GALL2_pfr" ana="audDocumenter">
   <head>The Relationship between Documentation and the ODD File</head>
   
   
   <div xml:id="learn_docRelationToOdd_disambiguation">
      <head>Disambiguation</head>
      
      <p>This documentation page is designed for documenters and does not explain the processing that includes documentation in the ODD file. For developers looking for documentation on code files and processing relevant to documentation, see <ptr target="doc:learn_odd_file_doc_guide"/>.</p>
   </div>
   
   
   <div xml:id="learn_docRelationToOdd_rationale">
      <head>Rationale</head>
      
      <p>Unlike our XML files for editions and anthology <soCalled>About</soCalled> pages which are rooted on the <gi>TEI</gi> element, our documentation files are rooted on the <gi>div</gi> element. We root documentation pages on <gi>div</gi> because the content from each documentation file is compiled into one <soCalled>page</soCalled> via processing instructions in the ODD file. Processing documentation in this way allows us to display all of the contents of a single documentation chapter on one HTML page on our rendered website, which some people find useful when searching for specific content in a chapter.</p>
   </div>
   
   
   <div xml:id="learn_docRelationToOdd_documentationIndex">
      <head>The Documentation Index</head>
      
      <p>All of our documentation files are compiled in one place in the documentation index. Our readers see the documentation index as the the HTML documentation landing page on our rendered website. As documenters, we also get to see the documentation index in the LEMDO ODD file (<ident>data/sch/lemdo.odd</ident>).</p>
      
      <p>Our documentation is the content that makes up the <gi>body</gi> element of the ODD file; our schema specification lives in the <gi>back</gi> element.</p>
      
      <p>In the <gi>body</gi> of the ODD file, each documentation chapter gets a <gi>div</gi> with a unique xml:id. Each <gi>div</gi> contains a <gi>head</gi> element which contains the chapter number and title that appear in the rendered documentation index. The documentation pages in each chapter are added using inline processing instructions that link to the individual documentation files. Prior to the processing instructions, chapters that are not yet completed and published have a single <gi>p</gi> element that contains the following sentence:
         <cit>
            <quote>This chapter of our documentation is still in beta. We welcome feedback, corrections, and questions while we finalize the page in our 2024–2025 work cycle.</quote>
         </cit>
         Once each chapter is completed, a member of the LEMDO team must remove the draft paragraph from the <gi>div</gi> for the chapter.
      </p>
      
      <p>Note that the draft paragraph is not visible from the online documentation index page. It is only visible from the full chapter view that people can reach by clicking on the title for each chapter.</p>
   </div>
   
   
   <div xml:id="learn_docRelationToOdd_processingInstructions">
      <head>Processing Instructions</head>
      
      <p>LEMDO’s developers have written a processing instruction to include documentation pages in our documentation index. For each documentation file that you wish to include in a documentation chapter, you must add a <ident>lemdo-include</ident> processing instruction. Doing so will add the documentation page to the next build and add a link to the documentation page from the documentation index. To add the processing instruction:
         <list rend="numbered">
            <item>Copy this instruction into the text node of the <gi>div</gi> for the chapter that you wish to add it to in the ODD file, placing it in the position in the chapter that you want it to be in: <code>&lt;?lemdo-include href="doc:[documentation xml:id]"?&gt;</code>.</item>
            <item>Replace <quote>[documentation xml:id]</quote> with the xml:id for the documentation file that you wish to add.</item>
         </list>
      </p>
      
      <p>For more information on the <ident>lemdo-include</ident> processing instruction, see <ptr target="doc:learn_progProcessingInstructions#learn_progProcessingInstructions_lemdo-include"/>.</p>
   </div>
   
   
   <div xml:id="learn_docRelationToOdd_credit">
      <head>Giving Credit in Documentation</head>
      
      <p>Rooting documentation files on the <gi>div</gi> element means that documentation pages are unique in the LEMDO XML ecosystem in how we give credit to those who worked on files. While in most TEI files we give credit to contributors in <gi>respStmt</gi> elements in the <gi>titleStmt</gi> of the <gi>teiHeader</gi>, we are unable to do so in each documentation file as there is no <gi>teiHeader</gi>. Instead, we list all contributors to LEMDO documentation in the <gi>teiHeader</gi> of the ODD file and link to the relevant contributors’ xml:ids from the root <gi>div</gi> element of each individual documentation file using the <att>resp</att> attribute.</p>
      
      <p>Note that because the responsibility statements that are shown on the rendered Web pages for documentation come from the ODD file rather than the documentation file itself, the order of contributors shown online follows the order that contributors are listed in the ODD file. Despite this, we do link to the xml:ids of contributors in the order of their contributions from the root <gi>div</gi> element of each documentation file (i.e., primary author of the file first, subsequent authors after). Following this practice ensures our underlying XML truthfully captures the contributions of each person to the extent possible.</p>
      
      <p>For more information on our practice for giving credit in documentation files, see <ptr target="doc:learn_docEncode_credit"/>.</p>
      
      <div xml:id="learn_docRelationToOdd_respStructure">
         <head>Structure of Responsibility Statements in the ODD File</head>
         
         <p>Because our ODD file contains both our documentation and our schema specification, there are responsibility statements for both the entire LEMDO project and for the LEMDO <title level="m">Encoding Guidelines</title> in the <gi>teiHeader</gi> of the ODD file. The <gi>respStmt</gi> elements giving credit for the entire project to the project director, project manager(s), and developers are listed first, followed by the <gi>respStmt</gi> elements for technical writers of documentation, documentation compilers, encoders, copyeditors, and finally proofreaders. Each group is separated by an XML comment.</p>
         
         <p>In the section for technical writers, the order of <gi>respStmt</gi> elements (and thus the order that names are listed in on the <soCalled>Credits</soCalled> pane on rendered documentation pages) puts lead documenters and major contributors first (given in the order of <persName ref="pers:JENS1">Janelle Jenstad</persName>, <persName ref="pers:HOUL3">Navarra Houldin</persName>, <persName ref="pers:GALL2">Mahayla Galliford</persName>, <persName ref="pers:ESTI2">Laura Estill</persName>, <persName ref="pers:HOLM1">Martin Holmes</persName>) followed by all of our contributing authors. Contributing authors are listed in alphabetical order by surname.</p>
         
         <p>Names in all other sections are given in alphabetical order by surname.</p>
      </div>
   </div>
</div>