Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
render all paragraph level elements in sections, subsections, ...
  • Loading branch information
EsGeh authored and EsGeh committed Mar 20, 2019
1 parent 898256f commit 13db9e4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tei2html.xsl
Expand Up @@ -835,7 +835,9 @@
<xsl:value-of select="concat('', name(), ': ') "/>
<xsl:value-of select="./text()"/>
</xsl:message>
<!--
<xsl:apply-templates/>
-->
</xsl:template>

<!-- mode="body": structural element (div, p, ...) -->
Expand All @@ -844,7 +846,9 @@
<xsl:value-of select="concat('', name(), ': ') "/>
<xsl:value-of select="./text()"/>
</xsl:message>
<!--
<xsl:apply-templates/>
-->
</xsl:template>

<!-- part and chapter headings are already rendered: -->
Expand All @@ -867,7 +871,7 @@
</h2>
</a>
<div class="accordion__content">
<xsl:apply-templates select="tei:div | tei:p | tei:ab" mode="body"/>
<xsl:apply-templates select="*[name() != 'head']" mode="body"/>
<!-- the link to close the accordeon: -->
<a class="accordion__pageup" href="#"/>
</div>
Expand All @@ -882,15 +886,15 @@
</xsl:if>
<xsl:apply-templates select="./tei:head" mode="body"/>
</h4>
<xsl:apply-templates select="tei:div | tei:p | tei:ab" mode="body"/>
<xsl:apply-templates select="*[name() != 'head']" mode="body"/>
</xsl:template>

<xsl:template match="tei:div[@type='subsubsection']" mode="body">
<xsl:message>subsubsection</xsl:message>
<h4>
<xsl:apply-templates select="./tei:head" mode="body"/>
</h4>
<xsl:apply-templates select="tei:div | tei:p | tei:ab" mode="body"/>
<xsl:apply-templates select="*[name() != 'head']" mode="body"/>
</xsl:template>

<!-- paragraph level elements: -->
Expand Down

0 comments on commit 13db9e4

Please sign in to comment.