Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- $Id: teiseg.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
  <!-- seg[@type='autopsy'] span added in htm-teiseg.xsl -->
7
  
8
  <xsl:template match="t:seg | t:w">
9
      <xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param>
10
      <xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
11
      <xsl:if test="$parm-leiden-style='london' and (@part='M' or @part='F')
12
         and not(preceding-sibling::node()[1][self::t:gap])
13
         and not($parm-edition-type='diplomatic')">
14
         <xsl:text>-</xsl:text>
15
      </xsl:if>
16
    
17
      <xsl:apply-templates/>
18
    
19
      <!-- Found in tpl-certlow.xsl -->
20
    <xsl:call-template name="cert-low"/>
21
    
22
      <xsl:if test="$parm-leiden-style='london' and (@part='I' or @part='M')
23
         and not(following-sibling::node()[1][self::t:gap])
24
         and not(descendant::ex[last()])
25
         and not($parm-edition-type='diplomatic')">
26
         <xsl:text>-</xsl:text>
27
      </xsl:if>
28
  </xsl:template>
29
  
30
 
31

    
32
</xsl:stylesheet>
(66-66/95)