Loading xsl/jats/jats2html.xsl +35 −10 Original line number Diff line number Diff line Loading @@ -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"> Loading Loading @@ -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> xsl/tei/03-tei2html_core.xsl +61 −43 Original line number Diff line number Diff line Loading @@ -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/> Loading Loading @@ -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"/> Loading Loading @@ -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 Loading
xsl/jats/jats2html.xsl +35 −10 Original line number Diff line number Diff line Loading @@ -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"> Loading Loading @@ -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>
xsl/tei/03-tei2html_core.xsl +61 −43 Original line number Diff line number Diff line Loading @@ -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/> Loading Loading @@ -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"/> Loading Loading @@ -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