Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- $Id: txt-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"
5
                version="2.0">
6
  <!-- template line-context can be found in teilgandl.xsl -->
7
  <xsl:include href="teilgandl.xsl"/>
8

    
9
  <xsl:template match="t:lg">
10
      <xsl:apply-templates/>
11
  </xsl:template>
12

    
13

    
14
  <xsl:template match="t:l">
15
      <xsl:param name="parm-line-inc" tunnel="yes" required="no"></xsl:param>
16
      <xsl:param name="parm-verse-lines" tunnel="yes" required="no"></xsl:param>
17
      <xsl:choose>
18
          <xsl:when test="$parm-verse-lines = 'yes'">
19
            <xsl:text>
20
&#xD;</xsl:text>
21
            <xsl:choose>
22
                <xsl:when test="number(@n) and @n mod $parm-line-inc = 0 and not(@n = 0)">
23
                  <xsl:text>	</xsl:text>
24
                  <xsl:value-of select="@n"/>
25
                  <xsl:text>	</xsl:text>
26
               </xsl:when>
27
               <xsl:otherwise>
28
                  <xsl:text>		</xsl:text>
29
               </xsl:otherwise>
30
            </xsl:choose>
31
            <!-- found in teilgandl.xsl -->
32
        <xsl:call-template name="line-context"/>
33
         </xsl:when>
34
         <xsl:otherwise>
35
            <xsl:apply-templates/>
36
         </xsl:otherwise>
37
      </xsl:choose>
38

    
39
  </xsl:template>
40

    
41
</xsl:stylesheet>
(84-84/95)