<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="learn_docRelationToOdd">
   <teiHeader>
      <fileDesc>
         <titleStmt>
            <title type="main">The Relationship between Documentation and the ODD File</title>
            <respStmt xml:id="odd_HOUL3_wtm">
               <resp ref="resp:wtm">Technical Writer</resp>
               <persName ref="pers:HOUL3">Navarra Houldin</persName>
            </respStmt>
            <respStmt xml:id="odd_GALL2_pfr">
               <resp ref="resp:pfr">Proofreader</resp>
               <persName ref="pers:GALL2">Mahayla Galliford</persName>
            </respStmt>
            <respStmt>
               <resp ref="resp:pdr">Project Director</resp>
               <persName ref="pers:JENS1">Janelle Jenstad</persName>
            </respStmt>
            <respStmt>
               <resp ref="resp:man">Project Manager</resp>
               <persName ref="pers:GALL2">Mahayla Galliford</persName>
            </respStmt>
            <respStmt>
               <resp ref="resp:wtm">Training and Documentation Lead</resp>
               <persName ref="pers:HOUL3">Navarra Houldin</persName>
            </respStmt>
            <respStmt>
               <resp ref="resp:man">Assistant Project Manager</resp>
               <persName ref="pers:SEAB1">Samuel Seaberg</persName>
            </respStmt>
            <respStmt>
               <resp ref="resp:prg">Programmer</resp>
               <persName ref="pers:HOLM1">Martin Holmes</persName>
            </respStmt>
            <respStmt>
               <resp ref="resp:prg">Programmer</resp>
               <persName ref="pers:NOKH1">Illya Nokhrin</persName>
            </respStmt>
            <respStmt>
               <resp ref="resp:prg">Programmer</resp>
               <persName ref="pers:TAKE1">Joey Takeda</persName>
            </respStmt>
            <respStmt>
               <resp ref="resp:prg">Junior Programmer</resp>
               <persName ref="pers:ELHA1">Tracey El Hajj</persName>
            </respStmt>
            <sponsor ref="org:LEMD1"/>
            <funder>Social Sciences and Humanities Research Council of Canada</funder>
         </titleStmt>
         <editionStmt>
            <p>Released with Linked Early Modern Drama Online 1.0</p>
         </editionStmt>
         <publicationStmt>
            <publisher>University of Victoria on the Linked Early Modern Drama Online Platform</publisher>
            <availability>
               <licence from="2023-12-10" resp="pers:JENS1" corresp="anth:lemdo"/>
               <p>This file is licensed under a <ref target="https://creativecommons.org/licenses/by-nc-nd/4.0/">CC BY-NC_ND 4.0 license</ref>, which means that it is freely downloadable without permission under the following conditions: (1) credit must be given to the author and LEMDO in any subsequent use of the files and/or data; (2) the content cannot be adapted or repurposed (except in quotations for the purposes of academic review and citation); and (3) commercial uses are not permitted without the knowledge and consent of the editor and LEMDO. This license allows for pedagogical use of the documentation in the classroom.</p>
            </availability>
         </publicationStmt>
         <seriesStmt>
            <p>Linked Early Modern Drama Online</p>
         </seriesStmt>
         <sourceDesc>
            <p>TEI Customization created by <orgName ref="pers:HOLM1">Martin Holmes</orgName>, <orgName ref="pers:TAKE1">Joey Takeda</orgName>, and <orgName ref="pers:JENS1">Janelle Jenstad</orgName>; documentation written by members of the <orgName ref="org:LEMD1">LEMDO Team</orgName>
            </p>
         </sourceDesc>
      </fileDesc>
      <profileDesc>
         <textClass>
            <catRef scheme="tax:emdDocumentTypes" target="cat:ldtBornDigDocumentation"/>
            <catRef scheme="tax:emdDocumentTypes" target="cat:ldtBornDig"/>
         </textClass>
      </profileDesc>
      <tei:encodingDesc xmlns:tei="http://www.tei-c.org/ns/1.0">
         <p>Encoded in TEI P5 according to the LEMDO Customization and Encoding Guidelines</p>
         <editorialDecl>
            <p>n/a</p>
         </editorialDecl>
         <tei:constraintDecl scheme="schematron" queryBinding="xslt2">
            <sch:ns xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                    prefix="tei"
                    uri="http://www.tei-c.org/ns/1.0"/>
            <sch:ns xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                    prefix="xs"
                    uri="http://www.w3.org/2001/XMLSchema"/>
            <sch:ns xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                    prefix="rng"
                    uri="http://relaxng.org/ns/structure/1.0"/>
            <sch:ns xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                    prefix="rna"
                    uri="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <sch:ns xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                    prefix="sch"
                    uri="http://purl.oclc.org/dsdl/schematron"/>
            <sch:ns xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                    prefix="sch1x"
                    uri="http://www.ascc.net/xml/schematron"/>
         </tei:constraintDecl>
      </tei:encodingDesc>
      <revisionDesc status="prgGenerated">
         <change who="pers:HOLM1" when="2026-08-06">Automatically generated this file by 
                        extracting its content from lemdo.lite.odd.</change>
      </revisionDesc>
   </teiHeader>
   <text>
      <body>
         <div ana="audDocumenter">
            <div xmlns:lemdo="http://hcmc.uvic.ca/lemdo/ns"
                 xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                 xmlns:teix="http://www.tei-c.org/ns/Examples"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 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 <title level="a"><ref target="doc:learn_odd_file_doc_guide">Documentation and the ODD File</ref></title>.</p>
            </div>
            <div xmlns:lemdo="http://hcmc.uvic.ca/lemdo/ns"
                 xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                 xmlns:teix="http://www.tei-c.org/ns/Examples"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 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 <ref target="doc:lemdo_spec_TEI"><gi>TEI</gi></ref> element, our documentation files are rooted on the <ref target="doc:lemdo_spec_div"><gi>div</gi></ref> element. We root documentation pages on <ref target="doc:lemdo_spec_div"><gi>div</gi></ref> 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 xmlns:lemdo="http://hcmc.uvic.ca/lemdo/ns"
                 xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                 xmlns:teix="http://www.tei-c.org/ns/Examples"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 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 <ref target="doc:lemdo_spec_body"><gi>body</gi></ref> element of the ODD file; our schema specification lives in the <ref target="doc:lemdo_spec_back"><gi>back</gi></ref> element.</p>
               <p>In the <ref target="doc:lemdo_spec_body"><gi>body</gi></ref> of the ODD file, each documentation chapter gets a <ref target="doc:lemdo_spec_div"><gi>div</gi></ref> with a unique xml:id. Each <ref target="doc:lemdo_spec_div"><gi>div</gi></ref> contains a <ref target="doc:lemdo_spec_head"><gi>head</gi></ref> 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 <ref target="doc:lemdo_spec_p"><gi>p</gi></ref> 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 <ref target="doc:lemdo_spec_div"><gi>div</gi></ref> 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 xmlns:lemdo="http://hcmc.uvic.ca/lemdo/ns"
                 xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                 xmlns:teix="http://www.tei-c.org/ns/Examples"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 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 <ref target="doc:lemdo_spec_div"><gi>div</gi></ref> 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 <title level="a"><ref target="doc:learn_progProcessingInstructions#learn_progProcessingInstructions_lemdo-include">lemdo-include</ref></title>.</p>
            </div>
            <div xmlns:lemdo="http://hcmc.uvic.ca/lemdo/ns"
                 xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                 xmlns:teix="http://www.tei-c.org/ns/Examples"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xml:id="learn_docRelationToOdd_credit">
               <head>Giving Credit in Documentation</head>
               <p>Rooting documentation files on the <ref target="doc:lemdo_spec_div"><gi>div</gi></ref> 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 <ref target="doc:lemdo_spec_respStmt"><gi>respStmt</gi></ref> elements in the <ref target="doc:lemdo_spec_titleStmt"><gi>titleStmt</gi></ref> of the <ref target="doc:lemdo_spec_teiHeader"><gi>teiHeader</gi></ref>, we are unable to do so in each documentation file as there is no <ref target="doc:lemdo_spec_teiHeader"><gi>teiHeader</gi></ref>. Instead, we list all contributors to LEMDO documentation in the <ref target="doc:lemdo_spec_teiHeader"><gi>teiHeader</gi></ref> of the ODD file and link to the relevant contributors’ xml:ids from the root <ref target="doc:lemdo_spec_div"><gi>div</gi></ref> 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 <ref target="doc:lemdo_spec_div"><gi>div</gi></ref> 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 <title level="a"><ref target="doc:learn_docEncode_credit">Give Credit for Documentation Files</ref></title>.</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 <ref target="doc:lemdo_spec_teiHeader"><gi>teiHeader</gi></ref> of the ODD file. The <ref target="doc:lemdo_spec_respStmt"><gi>respStmt</gi></ref> elements giving credit for the entire project to the project director, project manager(s), and developers are listed first, followed by the <ref target="doc:lemdo_spec_respStmt"><gi>respStmt</gi></ref> 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 <ref target="doc:lemdo_spec_respStmt"><gi>respStmt</gi></ref> 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>
      </body>
   </text>
</TEI>
