-
Notifications
You must be signed in to change notification settings - Fork 0
/
txt-teimilestone.xsl
38 lines (36 loc) · 1.34 KB
/
txt-teimilestone.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:t="http://www.tei-c.org/ns/1.0"
version="2.0">
<!-- More specific templates in teimilestone.xsl -->
<xsl:template match="t:milestone">
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
<xsl:choose>
<xsl:when test="($parm-leiden-style = ('ddbdp','dclp','sammelbuch')) and ancestor::t:div[@type = 'translation']">
<xsl:if test="@rend = 'break'">
<xsl:text>

</xsl:text>
</xsl:if>
<xsl:value-of select="@n"/>
<xsl:text> </xsl:text>
</xsl:when>
<xsl:when test="@rend = 'paragraphos'">
<xsl:choose>
<xsl:when test="($parm-leiden-style = ('ddbdp','dclp','sammelbuch'))">
<xsl:if test="not(parent::t:supplied)">
<xsl:text>

</xsl:text>
</xsl:if>
<xsl:text>————————</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>

</xsl:text>
<xsl:text>paragraphos</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>