{"push_id":861174624,"size":3,"distinct_size":3,"ref":"refs/heads/phi1017","head":"724635526d7853694494c5bdd678ae46470b549d","before":"c7413bd5bd79b7b188fa715787d821a78acbb315","commits":[{"sha":"64c65b6ab2c5163f4278d6a439313aa8c2e99f42","author":{"email":"ce8f8673ba41b434a02c99e1758742a8aeef0e86@gmail.com","name":"Thibault Clerice"},"message":"(1017.002.lat1) Epidoc and CTS through phi1017.xsl XSLT\n\n```xml\n<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n    xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"\n    exclude-result-prefixes=\"xs\"\n    version=\"2.0\">\n    <xsl:output indent=\"yes\"></xsl:output>\n    <xsl:template match=\"node()|@*|comment()\">\n        <!-- Copy the current node -->\n        <xsl:copy>\n            <!-- Including any child nodes it has and any attributes -->\n            <xsl:apply-templates select=\"node()|@*|comment()\"/>\n        </xsl:copy>\n    </xsl:template>\n    <xsl:template match=\"sourceDesc\">\n        <xsl:element name=\"sourceDesc\">\n            <xsl:apply-templates select=\"node()|@*|comment()\" />\n            <xsl:element name=\"listPerson\">\n                <xsl:for-each select=\"//role\">\n                    <xsl:element name=\"person\">\n                        <xsl:attribute name=\"xml:id\" select=\"current()/@id\"/>\n                        <xsl:element name=\"persName\" >\n                            <xsl:attribute name=\"xml:lang\" select=\"'eng'\"/>\n                            <xsl:value-of select=\"current()/text()\"/>\n                        </xsl:element>\n                    </xsl:element>\n                </xsl:for-each>\n            </xsl:element>\n        </xsl:element>\n    </xsl:template>\n    <xsl:template match=\"revisionDesc\">\n        <xsl:element name=\"revisionDesc\">\n            <xsl:element name=\"change\">\n                <xsl:attribute name=\"who\" select=\"'gcrane'\" />\n                <xsl:attribute name=\"when\" select=\"concat(.//date/text(), '-01-01:')\" />\n                <xsl:value-of select=\".//resp/text()\"/>\n            </xsl:element>\n        </xsl:element>\n    </xsl:template>\n    <xsl:template match=\"body\">\n        <xsl:element name=\"body\">\n            <xsl:element name=\"div\">\n                <xsl:attribute name=\"xml:lang\" select=\"'lat'\" />\n                <xsl:attribute name=\"type\" select=\"'edition'\" />\n                <xsl:attribute name=\"n\" select=\"concat('urn:cts:latinLit:',  replace(tokenize(base-uri(.), '/')[last()], '.xml', ''))\" />\n\n                <xsl:apply-templates select=\"node()|comment()\" />\n            </xsl:element>\n        </xsl:element>\n    </xsl:template>\n    <xsl:template match=\"encodingDesc\">\n        <encodingDesc>\n            <refsDecl n=\"CTS\">\n                <cRefPattern n=\"line\"\n                    matchPattern=\"(\\w+)\"\n                    replacementPattern=\"#xpath(/tei:TEI/tei:text/tei:body/tei:div//tei:l[@n='$1'])\">\n                    <p>This pointer pattern extracts line</p>\n                </cRefPattern>\n            </refsDecl>\n            <refsDecl n=\"TEI.2\">\n                <refState unit=\"card\"/>\n            </refsDecl>\n        </encodingDesc>\n    </xsl:template>\n    <xsl:template match=\"language\">\n        <xsl:element name=\"language\">\n          <xsl:attribute name=\"ident\" select=\"@id\"/>\n          <xsl:apply-templates select=\"node()|comment()\"/>\n        </xsl:element>\n    </xsl:template>\n    <xsl:template match=\"sp\">\n        <xsl:element name=\"sp\">\n          <xsl:attribute name=\"who\" select=\"concat('#', @who)\" />\n          <xsl:apply-templates select=\"node()|comment()\"/>\n        </xsl:element>\n    </xsl:template>\n    <xsl:template match=\"castList\"></xsl:template>\n    <xsl:template match=\"pb\">\n        <xsl:element name=\"pb\">\n            <xsl:attribute name=\"n\" select=\"@id\" />\n        </xsl:element>\n    </xsl:template>\n    <xsl:template match=\"gap\">\n        <xsl:element name=\"gap\">\n           <xsl:choose>\n               <xsl:when test=\"parent::node()/text() = '*'\">\n                   <xsl:attribute name=\"reason\" select=\"'lost'\" />\n               </xsl:when>\n               <xsl:otherwise>\n                   <xsl:attribute name=\"reason\" select=\"'omitted'\" />\n               </xsl:otherwise>\n           </xsl:choose>\n         <xsl:apply-templates select=\"node()|@*|comment()\"/>\n        </xsl:element>\n    </xsl:template>\n    <xsl:template match=\"TEI.2\">\n        <xsl:element name=\"TEI\">\n            <xsl:apply-templates select=\"node()|@*|comment()\"/>\n        </xsl:element>\n    </xsl:template>\n    <xsl:template match=\"teiHeader\">\n        <xsl:element name=\"teiHeader\">\n            <xsl:attribute name=\"type\" select=\"'text'\"/>\n            <xsl:apply-templates select=\"node()|comment()\"/>\n        </xsl:element>\n    </xsl:template>\n</xsl:stylesheet>\n```","distinct":true,"url":"https://api.github.com/repos/PerseusDL/canonical-latinLit/commits/64c65b6ab2c5163f4278d6a439313aa8c2e99f42"},{"sha":"7f80cf8821a446df1a4f3f8f73749493e280f755","author":{"email":"ce8f8673ba41b434a02c99e1758742a8aeef0e86@gmail.com","name":"Thibault Clerice"},"message":"(1017.002) __cts__","distinct":true,"url":"https://api.github.com/repos/PerseusDL/canonical-latinLit/commits/7f80cf8821a446df1a4f3f8f73749493e280f755"},{"sha":"724635526d7853694494c5bdd678ae46470b549d","author":{"email":"ce8f8673ba41b434a02c99e1758742a8aeef0e86@gmail.com","name":"Thibault Clerice"},"message":"(1017.002) Artefact","distinct":true,"url":"https://api.github.com/repos/PerseusDL/canonical-latinLit/commits/724635526d7853694494c5bdd678ae46470b549d"}]}