-
Notifications
You must be signed in to change notification settings - Fork 11
/
fo-teig.xsl
61 lines (56 loc) · 2.46 KB
/
fo-teig.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!-- $Id$ --><xsl:stylesheet xmlns:fo="http://www.w3.org/1999/XSL/Format" 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">
<!-- Import templates can be found in teig.xsl -->
<xsl:import href="teig.xsl"/>
<xsl:template match="t:g">
<xsl:param name="parm-edition-type" tunnel="yes" required="no"/>
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"/>
<xsl:param name="parm-edn-structure" tunnel="yes" required="no"/>
<xsl:call-template name="lb-dash">
<!-- params needed for excluding diplomatic and medCY project -->
<xsl:with-param name="parm-edition-type"/>
<xsl:with-param name="parm-leiden-style"/>
</xsl:call-template>
<xsl:call-template name="w-space"/>
<xsl:choose>
<xsl:when test="starts-with($parm-leiden-style, 'edh') or $parm-leiden-style='eagletxt'"/>
<xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch')">
<!-- Found in teig.xsl -->
<xsl:call-template name="g-ddbdp"/>
</xsl:when>
<xsl:when test="$parm-leiden-style = 'london'">
<xsl:call-template name="g-london"/>
</xsl:when>
<xsl:when test="$parm-leiden-style = 'iospe'">
<xsl:apply-imports/>
<!-- removed customization of IOSPE from stylesheets -->
<!--<xsl:call-template name="g-iospe"/>-->
</xsl:when>
<xsl:when test="$parm-leiden-style = 'rib'">
<xsl:call-template name="g-rib"/>
</xsl:when>
<xsl:when test="$parm-edn-structure = 'creta'">
<xsl:call-template name="g-creta"/>
</xsl:when>
<xsl:when test="$parm-edition-type = 'diplomatic'">
<xsl:text> </xsl:text>
<fo:inline-container>
<fo:inline font-size="smaller">
<xsl:apply-imports/>
</fo:inline>
</fo:inline-container>
<xsl:text> </xsl:text>
</xsl:when>
<xsl:when test="$parm-leiden-style = 'dohnicht'">
<xsl:text>⊂</xsl:text>
<xsl:apply-imports/>
<xsl:text>⊃</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>((</xsl:text>
<xsl:apply-imports/>
<xsl:text>))</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="w-space"/>
</xsl:template>
</xsl:stylesheet>