Chartes-TNAH / tite-live

0 stars 3 forks source link

Test2 fichier complet après validation dans le validator en ligne #69

Closed aimelle closed 6 years ago

aimelle commented 6 years ago

Du coup pour que tout marche sur Travis :

L'encodingDesc c'est ça :

<encodingDesc>
            <!-- la capitainisation -->
            <refsDecl n="CTS">
                <cRefPattern n="section" corresp="4" matchPattern="(\w+).(\w+).(\w+).(\w+).(\w+)"
                    replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2']/tei:div[@n='$3']/tei:div[@n='$4'])">
                    <p>This pointer pattern extracts edition, parts, books, chapters and
                        sections.</p>
                </cRefPattern>
                <cRefPattern n="chapter" corresp="3" matchPattern="(\w+).(\w+).(\w+).(\w+)"
                    replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2']/tei:div[@n='$3'])">
                    <p>This pointer pattern extracts edition, parts, books, and chapters.</p>
                </cRefPattern>
                <cRefPattern n="book" corresp="2" matchPattern="(\w+).(\w+).(\w+)"
                    replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])">
                    <p>This pointer pattern extracts edition, parts, and books.</p>
                </cRefPattern>
                <cRefPattern n="part" corresp="1" matchPattern="(\w+).(\w+)"
                    replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])">
                    <p>This pointer pattern extracts edition and parts.</p>
                </cRefPattern>
            </refsDecl>
            <refsDecl n="TEI">
                <refState unit="part"/>
                <refState unit="book"/>
                <refState unit="chapter"/>
                <refState unit="section"/>
            </refsDecl>
        </encodingDesc>

et sous le TeiHeader ça commence comme ça :

<text xml:lang="lat" xml:base="urn:cts:latinLit:phi0914.phi001.perseus-lat1">
        <body>
            <div xml:lang="lat" type="edition" n="urn:cts:latinLit:phi0914.phi001.perseus-lat1">
                <div type="textpart" subtype="part" n="1">
                    <div type="textpart" subtype="book" n="index">