-
Notifications
You must be signed in to change notification settings - Fork 0
/
teiseg.xsl
32 lines (25 loc) · 1.15 KB
/
teiseg.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
<?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">
<!-- seg[@type='autopsy'] span added in htm-teiseg.xsl -->
<xsl:template match="t:seg | t:w">
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param>
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
<xsl:if test="$parm-leiden-style='london' and (@part='M' or @part='F')
and not(preceding-sibling::node()[1][self::t:gap])
and not($parm-edition-type='diplomatic')">
<xsl:text>-</xsl:text>
</xsl:if>
<xsl:apply-templates/>
<!-- Found in tpl-certlow.xsl -->
<xsl:call-template name="cert-low"/>
<xsl:if test="$parm-leiden-style='london' and (@part='I' or @part='M')
and not(following-sibling::node()[1][self::t:gap])
and not(descendant::ex[last()])
and not($parm-edition-type='diplomatic')">
<xsl:text>-</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>