forked from abaevdict/abaev-basex
interpret tei:lb as new paragraph
This commit is contained in:
parent
ac9d112c13
commit
0e7fb74acf
3 changed files with 17 additions and 13 deletions
|
@ -87,12 +87,21 @@
|
|||
group-adjacent="not(self::tei:etym)">
|
||||
<xsl:choose>
|
||||
<xsl:when test="current-grouping-key()">
|
||||
<p class="abv-mainpart">
|
||||
<xsl:apply-templates select="current-group()"/>
|
||||
</p>
|
||||
<div class="abv-mainpart">
|
||||
<p>
|
||||
<xsl:apply-templates select="current-group()"/>
|
||||
</p>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="current-group()"/>
|
||||
<div class="abv-etym">
|
||||
<xsl:for-each-group select="node()"
|
||||
group-starting-with="tei:lb">
|
||||
<p>
|
||||
<xsl:apply-templates select="current-group()"/>
|
||||
</p>
|
||||
</xsl:for-each-group>
|
||||
</div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each-group>
|
||||
|
@ -260,9 +269,7 @@
|
|||
|
||||
<!-- ETYMOLOGY -->
|
||||
<xsl:template match="tei:etym">
|
||||
<p class="abv-etym">
|
||||
<xsl:apply-templates />
|
||||
</p>
|
||||
<xsl:apply-templates />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="tei:oRef">
|
||||
|
@ -284,7 +291,6 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="tei:lb">
|
||||
<xsl:element name="br"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="tei:hi">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue