1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<!-- $Id: htm-teilgandl.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
|
<xsl:include href="teilgandl.xsl"/>
|
7
|
|
8
|
<xsl:template match="t:lg">
|
9
|
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
|
10
|
<xsl:choose>
|
11
|
<!-- in IOSPE, if preceded by ab, will be called inside that div (in htm-teiab.xsl) -->
|
12
|
<xsl:when test="$parm-leiden-style='iospe' and preceding-sibling::t:*[1][local-name()='ab']"/>
|
13
|
<xsl:otherwise>
|
14
|
<div class="textpart">
|
15
|
<!-- Found in htm-tpl-lang.xsl -->
|
16
|
<xsl:call-template name="attr-lang"/>
|
17
|
<xsl:apply-templates/>
|
18
|
</div>
|
19
|
</xsl:otherwise>
|
20
|
</xsl:choose>
|
21
|
</xsl:template>
|
22
|
|
23
|
|
24
|
<xsl:template match="t:l">
|
25
|
<xsl:param name="parm-line-inc" tunnel="yes" required="no"></xsl:param>
|
26
|
<xsl:param name="parm-verse-lines" tunnel="yes" required="no"></xsl:param>
|
27
|
<xsl:choose>
|
28
|
<xsl:when test="$parm-verse-lines = 'on'">
|
29
|
<xsl:variable name="div-loc">
|
30
|
<xsl:for-each select="ancestor::t:div[@type='textpart']">
|
31
|
<xsl:value-of select="@n"/>
|
32
|
<xsl:text>-</xsl:text>
|
33
|
</xsl:for-each>
|
34
|
</xsl:variable>
|
35
|
<br id="a{$div-loc}l{@n}"/>
|
36
|
<xsl:if test="number(@n) and @n mod $parm-line-inc = 0 and not(@n = 0)">
|
37
|
<span class="linenumber">
|
38
|
<xsl:value-of select="@n"/>
|
39
|
</span>
|
40
|
</xsl:if>
|
41
|
<!-- found in teilgandl.xsl -->
|
42
|
<xsl:call-template name="line-context"/>
|
43
|
</xsl:when>
|
44
|
<xsl:otherwise>
|
45
|
<xsl:apply-templates/>
|
46
|
</xsl:otherwise>
|
47
|
</xsl:choose>
|
48
|
</xsl:template>
|
49
|
|
50
|
</xsl:stylesheet>
|