forked from EpiDoc/Stylesheets
-
Notifications
You must be signed in to change notification settings - Fork 1
/
htm-teilgandl.xsl
50 lines (46 loc) · 1.87 KB
/
htm-teilgandl.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
39
40
41
42
43
44
45
46
47
48
49
50
<?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" exclude-result-prefixes="t"
version="2.0">
<xsl:include href="teilgandl.xsl"/>
<xsl:template match="t:lg">
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
<xsl:choose>
<!-- in IOSPE, if preceded by ab, will be called inside that div (in htm-teiab.xsl) -->
<xsl:when test="$parm-leiden-style='iospe' and preceding-sibling::t:*[1][local-name()='ab']"/>
<xsl:otherwise>
<div class="textpart">
<!-- Found in htm-tpl-lang.xsl -->
<xsl:call-template name="attr-lang"/>
<xsl:apply-templates/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="t:l">
<xsl:param name="parm-line-inc" tunnel="yes" required="no"></xsl:param>
<xsl:param name="parm-verse-lines" tunnel="yes" required="no"></xsl:param>
<xsl:choose>
<xsl:when test="$parm-verse-lines = 'on'">
<xsl:variable name="div-loc">
<xsl:for-each select="ancestor::t:div[@type='textpart']">
<xsl:value-of select="@n"/>
<xsl:text>-</xsl:text>
</xsl:for-each>
</xsl:variable>
<br id="a{$div-loc}l{@n}"/>
<xsl:if test="number(@n) and @n mod number($parm-line-inc) = 0 and not(@n = 0)">
<span class="linenumber">
<xsl:value-of select="@n"/>
</span>
</xsl:if>
<!-- found in teilgandl.xsl -->
<xsl:call-template name="line-context"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>