<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="learn_schematronErrors">
   <teiHeader>
      <fileDesc>
         <titleStmt>
            <title type="main">Schematron and Validation Errors</title>
            <respStmt xml:id="odd_HOUL3_wtm">
               <resp ref="resp:wtm">Technical Writer</resp>
               <name ref="pers:HOUL3">Navarra Houldin</name>
            </respStmt>
            <respStmt xml:id="odd_GALL2_pfr">
               <resp ref="resp:pfr">Proofreader</resp>
               <name ref="pers:GALL2">Mahayla Galliford</name>
            </respStmt>
            <respStmt>
               <resp ref="resp:pdr">Project Director</resp>
               <name ref="pers:JENS1">Janelle Jenstad</name>
            </respStmt>
            <respStmt>
               <resp ref="resp:wtm">Project Manager</resp>
               <name ref="pers:GALL2">Mahayla Galliford</name>
            </respStmt>
            <respStmt>
               <resp ref="resp:wtm">Training and Documentation Lead</resp>
               <name ref="pers:HOUL3">Navarra Houldin</name>
            </respStmt>
            <respStmt>
               <resp ref="resp:prg">Programmer</resp>
               <name ref="pers:HOLM1">Martin Holmes</name>
            </respStmt>
            <respStmt>
               <resp ref="resp:prg">Programmer</resp>
               <name ref="pers:TAKE1">Joey Takeda</name>
            </respStmt>
            <respStmt>
               <resp ref="resp:prg">Junior Programmer</resp>
               <name ref="pers:ELHA1">Tracey El Hajj</name>
            </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 <name ref="pers:HOLM1">Martin Holmes</name>, <name ref="pers:TAKE1">Joey Takeda</name>, and <name ref="pers:JENS1">Janelle Jenstad</name>; documentation written by members of the <name ref="org:LEMD1">LEMDO Team</name>
            </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-03-20">Automatically generated this file by 
                        extracting its content from lemdo.lite.odd.</change>
      </revisionDesc>
   </teiHeader>
   <text>
      <body>
         <div ana="audRepoUser audEncoder audRemediator">
            <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_schematronErrors_prior">
               <head>Prior Reading</head>
               <list rend="bulleted">
                  <item>
                     <title level="a"><ref target="doc:learn_repoIntro">The LEMDO Platform and Repository</ref></title>
                  </item>
                  <item>
                     <title level="a"><ref target="doc:learn_validate">Validate Files</ref></title>
                  </item>
               </list>
            </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_schematronErrors_intro">
               <head>Introduction</head>
               <p>
                  <term ref="gloss:SCHE2">Schematron</term> is the language that LEMDO uses to write rules specific to LEMDO’s encoding. <term ref="gloss:SCHE2">Schematron</term>, alongside our <term ref="gloss:SCHE3">schema</term>, ensures that encoding is consistent and correct throughout the LEMDO project. If your encoding does not follow one of the Schematron rules that we have written, then you will get a <term>validation error</term>. This will prompt you to go back and correct your encoding. It is important that you fix validation errors as soon as you get them.</p>
               <p>If you commit an invalid file, it will <soCalled>break the build</soCalled>. This means that our Jenkins Continuous Integration Server is unable to finish <soCalled>serving up</soCalled> a new version of the LEMDO-dev website. When the build is broken, nobody can see the work that they have recently committed rendered in HTML. If you inadvertently break the build, a member of the LEMDO team will contact you so that you can fix the error causing the build break.</p>
               <p>If there is an error that is frequently occurring that is not currently prevented by Schematron, we will write a new Schematron rule in the ODD file (<ident>lemdo.odd</ident>). You must <code>svn up</code> regularly to ensure that you get any new Schematron rules that we add.</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_schematronErrors_checkValidity">
               <head>Step-by-Step: Check Validity</head>
               <list rend="numbered">
                  <item>Click the validation button at the top of your Oxygen window (it resembles a piece of paper with a checkmark on it).</item>
                  <item>Check for the validation message at the bottom of your Oxygen window. It will say either <quote>Validation successful</quote> or <quote>Document contains errors</quote>.</item>
                  <item>If your validation is successful, you can either continue working or save and commit your file.</item>
                  <item>If your validation is not successful, you must fix the error. Never commit an invalid file.</item>
               </list>
               <p>For more detailed instructions for validating a file, see <title level="a"><ref target="doc:learn_validate">Validate Files</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_schematronErrors_fixValidationErrors">
               <head>Practice: Fix Validation Errors</head>
               <p>To fix a validation error, look at the error message at the bottom of your Oxygen window. In most cases, we have written instructions for how to fix Schematron errors. For example, if you have a straight apostrophe in your file, you will get an error message that says: <quote>ERROR: Straight apostrophes are not allowed in text. Use curly apostrophes instead. The shortcut to add a curly apostrophe is ctrl+shift+’ (on PC or Unix) and command+shift+’ (on iOS).</quote>
               </p>
               <p>If you are unable to see the entire message because it is cut off, you can pull up a window with the full message by double clicking on the message text.</p>
               <p>If you are unable to fix the error yourself, contact the <ref target="mailto:lemdo@uvic.ca">LEMDO team</ref> for help. Do not commit your file while it is invalid.</p>
            </div>
         </div>
      </body>
   </text>
</TEI>
