1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<!-- $Id: teinum.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" exclude-result-prefixes="t"
|
5
|
version="2.0">
|
6
|
<!-- latinnum span added in htm-teinum.xsl -->
|
7
|
|
8
|
<xsl:template match="t:num">
|
9
|
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param>
|
10
|
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
|
11
|
<xsl:choose>
|
12
|
<xsl:when test="not(child::t:* or child::text())"/>
|
13
|
<xsl:when test="$parm-leiden-style = ('ddbdp','sammelbuch')">
|
14
|
<xsl:apply-templates/>
|
15
|
<xsl:if test="@rend='tick'">
|
16
|
<xsl:text>´</xsl:text>
|
17
|
</xsl:if>
|
18
|
</xsl:when>
|
19
|
<xsl:when test="$parm-edition-type='interpretive' and ancestor::t:*[@xml:lang][1][@xml:lang = 'grc']
|
20
|
and ((number(@value) and not(contains(@value,'/')))
|
21
|
or (number(@atLeast) and not(contains(@atLeast,'/')))
|
22
|
or (number(@atMost) and not(contains(@atMost,'/'))))">
|
23
|
<xsl:if test="@value >= 1000 or @atLeast >= 1000 or @atMost >= 1000">
|
24
|
<xsl:text>͵</xsl:text>
|
25
|
</xsl:if>
|
26
|
<xsl:apply-templates/>
|
27
|
<xsl:if test="@value mod 1000 != 0
|
28
|
or @atLeast mod 1000 != 0
|
29
|
or @atMost mod 1000 != 0">
|
30
|
<xsl:text>´</xsl:text>
|
31
|
</xsl:if>
|
32
|
</xsl:when>
|
33
|
<xsl:otherwise>
|
34
|
<xsl:apply-templates/>
|
35
|
</xsl:otherwise>
|
36
|
</xsl:choose>
|
37
|
</xsl:template>
|
38
|
|
39
|
|
40
|
</xsl:stylesheet>
|