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

jats2html : ajustements

parent e65efd8f
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
@@ -1423,7 +1423,7 @@

    <xsl:template match="p">
        <p>
            <xsl:if test="not(@*) and (parent::body/p[not(@*)][1] = . or parent::bodyInclusion/p[not(@*)][1] = .)">
            <xsl:if test="not(@*) and (parent::body/p[not(@*)][1] = . or parent::bodyInclusion/p[not(@*)][1] = .) and not(preceding-sibling::p[contains(@content-type, 'TEI_localpara')])">
                <xsl:attribute name="class">firstPara</xsl:attribute>
            </xsl:if>
            <xsl:apply-templates select="node()"/>
@@ -1659,4 +1659,20 @@
        </section>
    </xsl:template>

    <!-- styles locaux -->
    <xsl:template match="named-content[contains(@content-type,'TEI_localcar')]">
        <span class="{@content-type}">
            <xsl:apply-templates/>
        </span>
     </xsl:template>

    <xsl:template match="p[contains(@content-type,'TEI_localpara')]">
        <p class="{@content-type}">
            <xsl:apply-templates/>
        </p>
    </xsl:template>

     <!-- neutraliser les entrées d'index -->
      <xsl:template match="index-term"/>

</xsl:stylesheet>