Skip to content
Snippets Groups Projects
Commit aceae6fb authored by Marcus Baumgarten's avatar Marcus Baumgarten
Browse files

Update tei-translation.xsl

parent 790b1af8
No related branches found
No related tags found
No related merge requests found
......@@ -483,7 +483,7 @@
</i></p>
</xsl:template>
<xsl:template match="tei:lb">
<!--<xsl:template match="tei:lb">
<xsl:choose>
<xsl:when test="ancestor::tei:item">
<xsl:copy>
......@@ -494,14 +494,41 @@
<br/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>-->
<!-- Zeilenumbrüche innerhalb von Listen unterdrücken -->
<xsl:template match="tei:item/tei:lb"/>
<xsl:template match="tei:lb">
<xsl:element name="br">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<!-- Regel zum Entfernen von "=" oder "= " in <list> -->
<xsl:template match="tei:list//text()">
<!--<xsl:template match="tei:list//text()">
<xsl:value-of select="normalize-space(replace(., '=\s*', ''))"/>
</xsl:template>-->
<xsl:template match="tei:list/tei:item/text()">
<xsl:choose>
<!-- Wenn der Text mit "= " beginnt, entfernen Sie es -->
<xsl:when test="starts-with(., '= ')">
<xsl:value-of select="substring-after(., '= ')"/>
</xsl:when>
<!-- Wenn der Text "=" enthält, entfernen Sie es -->
<xsl:when test="contains(., '=')">
<xsl:value-of select="substring-before(., '=')"/>
<!--<xsl:value-of select="substring-after(., '=')"/>-->
</xsl:when>
<!-- Andernfalls lassen Sie den Text unverändert -->
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="tei:closer">
<p>
<i><xsl:apply-templates/></i>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment