Commit df7da01d authored by Eva Huet's avatar Eva Huet
Browse files

push xsl (alignement avec local)

parent 0d0597f5
Loading
Loading
Loading
Loading
+35 −10
Original line number Diff line number Diff line
@@ -1504,6 +1504,12 @@
        </p>
    </xsl:template>

    <xsl:template match="named-content[@content-type='bibl-body']">
        <a class="bibl">
            <xsl:apply-templates select="node()"/>
        </a>
    </xsl:template>

    <!-- p simple -->

    <xsl:template match="p">
@@ -1777,4 +1783,23 @@
     <!-- neutraliser les entrées d'index -->
      <xsl:template match="index-term"/>

    <!-- code -->

    <xsl:template match="code">
        <xsl:choose>
            <xsl:when test="ancestor::p">
                <code><xsl:apply-templates/></code>
            </xsl:when>
            <xsl:otherwise>
                <pre><code><xsl:apply-templates/></code></pre>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

    <xsl:template match="named-content[@content-type='foreign']">
        <span class="{@xml:lang}"><xsl:apply-templates/></span>
    </xsl:template>



</xsl:stylesheet>
+61 −43
Original line number Diff line number Diff line
@@ -1673,7 +1673,8 @@
            or parent::tei:div[@type='review']/tei:p[1] = . 
            or parent::bodyInclusion/tei:p[1] = . 
            or ancestor::tei:floatingText[@type='description']//tei:p[1] = .) 
            and not(preceding-sibling::tei:p[contains(@rend, 'TEI_localpara')])">
            and not(preceding-sibling::tei:p[contains(@rend, 'TEI_localpara')])
            and not(preceding-sibling::tei:p)">
                <xsl:attribute name="class">firstPara</xsl:attribute>
            </xsl:if>
            <xsl:apply-templates/>
@@ -1870,6 +1871,9 @@
        </details>
    </xsl:template>
    
    <xsl:template match="tei:p[@rend='caption']/tei:bibl[@rend='inline']">
        <a class='bibl'><xsl:apply-templates/></a>
    </xsl:template>

    <!-- table -->
    <xsl:template match="tei:figure[child::tei:table]/tei:head"/>
@@ -2312,4 +2316,18 @@
    <xsl:template match="tei:text[@type='review']//tei:p[@rend='author-aut'][not(ancestor::tei:div[@type='review'])]"/>
    <xsl:template match="tei:text[@type='review']//tei:p[@rend='authority_affiliation'][not(ancestor::tei:div[@type='review'])]"/>

    <!-- code -->
    
    <xsl:template match="tei:p[tei:code and not(text()) and count(*)=1]">
        <pre><xsl:apply-templates/></pre>
    </xsl:template>
    
    <xsl:template match="tei:code">
        <code><xsl:apply-templates/></code>
    </xsl:template>

    <xsl:template match="tei:foreign">
        <span class="{@xml:lang}"><xsl:apply-templates/></span>
    </xsl:template>

</xsl:stylesheet>
 No newline at end of file