Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- $Id: txt-teiapp.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

    
7
  <xsl:template match="t:app">
8
      <xsl:param name="parm-apparatus-style" tunnel="yes" required="no"></xsl:param>
9
      <xsl:apply-templates/>
10
      <xsl:if test="$parm-apparatus-style = 'ddbdp'">
11
      <!-- Found in txt-tpl-apparatus -->
12
      <xsl:call-template name="app-link">
13
            <xsl:with-param name="location" select="'text'"/>
14
         </xsl:call-template>
15
      </xsl:if>
16
  </xsl:template>
17

    
18

    
19
  <xsl:template match="t:rdg">
20
      <xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param>
21
      <xsl:choose>
22
          <xsl:when test="$parm-edition-type = 'diplomatic'">
23
            <xsl:choose>
24
               <xsl:when test="@resp='previous'"/>
25
               <xsl:when test="@resp='autopsy'">
26
                  <xsl:apply-templates/>
27
               </xsl:when>
28
               <xsl:otherwise/>
29
            </xsl:choose>
30
         </xsl:when>
31
         <xsl:otherwise>
32
            <xsl:choose>
33
               <xsl:when test="@resp='previous'">
34
                  <xsl:apply-templates/>
35
               </xsl:when>
36
               <xsl:when test="@resp='autopsy'"/>
37
               <xsl:otherwise/>
38
            </xsl:choose>
39
         </xsl:otherwise>
40
      </xsl:choose>
41
  </xsl:template>
42

    
43

    
44
  <xsl:template match="t:wit">
45
      <xsl:choose>
46
      <!-- Temporary -->
47
      <xsl:when test="parent::t:app"/>
48

    
49
         <xsl:otherwise>
50
            <xsl:apply-templates/>
51
         </xsl:otherwise>
52
      </xsl:choose>
53
  </xsl:template>
54

    
55

    
56
</xsl:stylesheet>
(77-77/95)