Skip to content
Snippets Groups Projects
Commit 679f28f4 authored by Oke Möller's avatar Oke Möller
Browse files

Ersetzung der line groups und lines

Ersetzung mit dem Skript "lineGroupsToParagraphs"
parent 2a5c157d
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
exclude-result-prefixes="xs math"
version="3.0">
<!-- Identity transformation -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<!-- Template to transform lg elements into p elements -->
<xsl:template match="tei:lg">
<p xmlns="http://www.tei-c.org/ns/1.0">
<xsl:if test="tei:l[1][@rendition = '#ind']">
<xsl:attribute name="rendition">
<xsl:value-of select="tei:l[1]/@rendition"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="tei:l"/>
</p>
</xsl:template>
<!-- Template to transform l elements into their content followed by lb where there are subsequent l -->
<xsl:template match="tei:l">
<xsl:apply-templates/>
<xsl:if test="following-sibling::tei:l">
<lb xmlns="http://www.tei-c.org/ns/1.0" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
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