-
Notifications
You must be signed in to change notification settings - Fork 11
/
htm-teigap.xsl
27 lines (23 loc) · 1.06 KB
/
htm-teigap.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
<?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">
<!-- Imported templates can be found in teigap.xsl -->
<xsl:import href="teigap.xsl"/>
<xsl:template match="t:gap[@reason = 'lost']">
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
<xsl:if test="@extent='unknown' and @reason='lost' and @unit='line' and ($parm-leiden-style = ('ddbdp','dclp','sammelbuch'))
and not(preceding-sibling::t:*[1][local-name() = 'lb'])">
<!-- adds a newline character before gap-extent-line in DDbDP unless <lb/> present -->
<br/>
</xsl:if>
<xsl:apply-imports/>
</xsl:template>
<xsl:template match="t:gap">
<xsl:apply-imports/>
</xsl:template>
<xsl:template name="extent-string-wrapper">
<span dir="ltr" class="gap"><xsl:call-template name="extent-string-content"/></span>
</xsl:template>
</xsl:stylesheet>