Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- $Id: htm-teig.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
  
7
  <!-- Import templates can be found in teig.xsl -->
8
  <xsl:import href="teig.xsl"/>
9

    
10
  <xsl:template match="t:g">
11
      <xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param>
12
      <xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
13
      <xsl:call-template name="lb-dash"/>
14
      <xsl:call-template name="w-space"/>
15
    
16
     <xsl:choose>
17
         <xsl:when test="starts-with($parm-leiden-style, 'edh')"/>
18
         <xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch')">
19
        <!-- Found in teig.xsl -->
20
        <xsl:call-template name="g-ddbdp"/>
21
         </xsl:when>
22
         <xsl:when test="$parm-leiden-style = 'london'">
23
           <xsl:call-template name="g-london"/>
24
         </xsl:when>
25
         <xsl:when test="$parm-leiden-style = 'iospe'">
26
           <xsl:call-template name="g-iospe"/>
27
        </xsl:when>
28
         <xsl:when test="$parm-leiden-style = 'rib'">
29
             <xsl:call-template name="g-rib"/>
30
         </xsl:when>
31
         <xsl:when test="$parm-edition-type = 'diplomatic'">
32
            <xsl:text> </xsl:text>
33
            <em>
34
               <span class="smaller">
35
                  <xsl:apply-imports/>
36
               </span>
37
            </em>
38
            <xsl:text> </xsl:text>
39
         </xsl:when>
40
         <xsl:when test="$parm-leiden-style = 'dohnicht'">
41
           <xsl:text></xsl:text>
42
           <xsl:apply-imports/>
43
           <xsl:text></xsl:text>
44
        </xsl:when>
45
        <xsl:otherwise>
46
           <xsl:text>((</xsl:text>
47
           <xsl:apply-imports/>
48
           <xsl:text>))</xsl:text>
49
         </xsl:otherwise>
50
      </xsl:choose>
51
    
52
      <xsl:call-template name="w-space"/>
53
  </xsl:template>
54

    
55
</xsl:stylesheet>
(14-14/95)