-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-edition.xsl
152 lines (140 loc) · 8.03 KB
/
start-edition.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?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"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="t" version="2.0">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:include href="global-varsandparams.xsl"/>
<!-- html related stylesheets, these may import tei{element} stylesheets if relevant eg. htm-teigap and teigap -->
<xsl:include href="htm-teiab.xsl"/>
<xsl:include href="htm-teiaddanddel.xsl"/>
<xsl:include href="htm-teiapp.xsl"/>
<xsl:include href="htm-teidiv.xsl"/>
<xsl:include href="htm-teidivedition.xsl"/>
<xsl:include href="htm-teiforeign.xsl"/>
<xsl:include href="htm-teifigure.xsl"/>
<xsl:include href="htm-teig.xsl"/>
<xsl:include href="htm-teigap.xsl"/>
<xsl:include href="htm-teihead.xsl"/>
<xsl:include href="htm-teihi.xsl"/>
<xsl:include href="htm-teilb.xsl"/>
<xsl:include href="htm-teilgandl.xsl"/>
<xsl:include href="htm-teilistanditem.xsl"/>
<xsl:include href="htm-teilistbiblandbibl.xsl"/>
<xsl:include href="htm-teimilestone.xsl"/>
<xsl:include href="htm-teinote.xsl"/>
<xsl:include href="htm-teinum.xsl"/>
<xsl:include href="htm-teip.xsl"/>
<xsl:include href="htm-teiseg.xsl"/>
<xsl:include href="htm-teispace.xsl"/>
<xsl:include href="htm-teisupplied.xsl"/>
<xsl:include href="htm-teiterm.xsl"/>
<xsl:include href="htm-teiref.xsl"/>
<!-- tei stylesheets that are also used by start-txt -->
<xsl:include href="teiabbrandexpan.xsl"/>
<xsl:include href="teicertainty.xsl"/>
<xsl:include href="teichoice.xsl"/>
<xsl:include href="teihandshift.xsl"/>
<xsl:include href="teiheader.xsl"/>
<xsl:include href="teimilestone.xsl"/>
<xsl:include href="teiorig.xsl"/>
<xsl:include href="teiorigandreg.xsl"/>
<xsl:include href="teiq.xsl"/>
<xsl:include href="teisicandcorr.xsl"/>
<xsl:include href="teispace.xsl"/>
<xsl:include href="teisupplied.xsl"/>
<xsl:include href="teisurplus.xsl"/>
<xsl:include href="teiunclear.xsl"/>
<!-- html related stylesheets for named templates -->
<xsl:include href="htm-tpl-cssandscripts.xsl"/>
<xsl:include href="htm-tpl-apparatus.xsl"/>
<xsl:include href="htm-tpl-lang.xsl"/>
<xsl:include href="htm-tpl-metadata.xsl"/>
<xsl:include href="htm-tpl-license.xsl"/>
<xsl:include href="htm-tpl-sqbrackets.xsl"/>
<!-- named templates for localized layout/structure (aka "metadata") -->
<xsl:include href="htm-tpl-structure.xsl"/>
<xsl:include href="htm-tpl-struct-hgv.xsl"/>
<xsl:include href="htm-tpl-struct-inslib.xsl"/>
<xsl:include href="htm-tpl-struct-rib.xsl"/>
<xsl:include href="htm-tpl-struct-iospe.xsl"/>
<xsl:include href="htm-tpl-struct-edh.xsl"/>
<!-- global named templates with no html, also used by start-txt -->
<xsl:include href="tpl-certlow.xsl"/>
<xsl:include href="tpl-text.xsl"/>
<!-- HTML FILE -->
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$edn-structure = 'london'">
<!-- this and other structure templates found in htm-tpl-struct-*.xsl -->
<xsl:call-template name="london-structure">
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$edn-structure = 'hgv'">
<xsl:call-template name="hgv-structure">
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$edn-structure = 'inslib'">
<xsl:call-template name="inslib-structure">
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$edn-structure = 'iospe'">
<xsl:call-template name="iospe-structure">
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$edn-structure = 'ddbdp'">
<div>
<xsl:call-template name="default-body-structure">
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
</xsl:call-template>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="default-structure">
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>