1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<!-- $Id: txt-teimilestone.xsl 2090 2013-10-24 15:23:22Z gabrielbodard $ -->
|
3
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
4
|
xmlns:t="http://www.tei-c.org/ns/1.0"
|
5
|
version="2.0">
|
6
|
<!-- More specific templates in teimilestone.xsl -->
|
7
|
|
8
|
<xsl:template match="t:milestone">
|
9
|
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
|
10
|
<xsl:choose>
|
11
|
<xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch') and ancestor::t:div[@type = 'translation']">
|
12
|
<xsl:if test="@rend = 'break'">
|
13
|
<xsl:text>
|
14
|

</xsl:text>
|
15
|
</xsl:if>
|
16
|
<xsl:value-of select="@n"/>
|
17
|
<xsl:text> </xsl:text>
|
18
|
</xsl:when>
|
19
|
<xsl:when test="@rend = 'paragraphos'">
|
20
|
<xsl:choose>
|
21
|
<xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch')">
|
22
|
<xsl:if test="not(parent::t:supplied)">
|
23
|
<xsl:text>
|
24
|

</xsl:text>
|
25
|
</xsl:if>
|
26
|
<xsl:text>————————</xsl:text>
|
27
|
</xsl:when>
|
28
|
<xsl:otherwise>
|
29
|
<xsl:text>
|
30
|

</xsl:text>
|
31
|
<xsl:text>paragraphos</xsl:text>
|
32
|
</xsl:otherwise>
|
33
|
</xsl:choose>
|
34
|
</xsl:when>
|
35
|
</xsl:choose>
|
36
|
</xsl:template>
|
37
|
|
38
|
</xsl:stylesheet>
|