1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<!-- $Id: start-edition.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"
|
5
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
6
|
exclude-result-prefixes="t" version="2.0">
|
7
|
<xsl:output method="xml" encoding="UTF-8"/>
|
8
|
|
9
|
<xsl:include href="global-varsandparams.xsl"/>
|
10
|
|
11
|
<!-- html related stylesheets, these may import tei{element} stylesheets if relevant eg. htm-teigap and teigap -->
|
12
|
<xsl:include href="htm-teiab.xsl"/>
|
13
|
<xsl:include href="htm-teiaddanddel.xsl"/>
|
14
|
<xsl:include href="htm-teiapp.xsl"/>
|
15
|
<xsl:include href="htm-teidiv.xsl"/>
|
16
|
<xsl:include href="htm-teidivedition.xsl"/>
|
17
|
<xsl:include href="htm-teiforeign.xsl"/>
|
18
|
<xsl:include href="htm-teifigure.xsl"/>
|
19
|
<xsl:include href="htm-teig.xsl"/>
|
20
|
<xsl:include href="htm-teigap.xsl"/>
|
21
|
<xsl:include href="htm-teihead.xsl"/>
|
22
|
<xsl:include href="htm-teihi.xsl"/>
|
23
|
<xsl:include href="htm-teilb.xsl"/>
|
24
|
<xsl:include href="htm-teilgandl.xsl"/>
|
25
|
<xsl:include href="htm-teilistanditem.xsl"/>
|
26
|
<xsl:include href="htm-teilistbiblandbibl.xsl"/>
|
27
|
<xsl:include href="htm-teimilestone.xsl"/>
|
28
|
<xsl:include href="htm-teinote.xsl"/>
|
29
|
<xsl:include href="htm-teinum.xsl"/>
|
30
|
<xsl:include href="htm-teip.xsl"/>
|
31
|
<xsl:include href="htm-teiseg.xsl"/>
|
32
|
<xsl:include href="htm-teispace.xsl"/>
|
33
|
<xsl:include href="htm-teisupplied.xsl"/>
|
34
|
<xsl:include href="htm-teiterm.xsl"/>
|
35
|
<xsl:include href="htm-teiref.xsl"/>
|
36
|
|
37
|
<!-- tei stylesheets that are also used by start-txt -->
|
38
|
<xsl:include href="teiabbrandexpan.xsl"/>
|
39
|
<xsl:include href="teicertainty.xsl"/>
|
40
|
<xsl:include href="teichoice.xsl"/>
|
41
|
<xsl:include href="teihandshift.xsl"/>
|
42
|
<xsl:include href="teiheader.xsl"/>
|
43
|
<xsl:include href="teimilestone.xsl"/>
|
44
|
<xsl:include href="teiorig.xsl"/>
|
45
|
<xsl:include href="teiorigandreg.xsl"/>
|
46
|
<xsl:include href="teiq.xsl"/>
|
47
|
<xsl:include href="teisicandcorr.xsl"/>
|
48
|
<xsl:include href="teispace.xsl"/>
|
49
|
<xsl:include href="teisupplied.xsl"/>
|
50
|
<xsl:include href="teisurplus.xsl"/>
|
51
|
<xsl:include href="teiunclear.xsl"/>
|
52
|
|
53
|
<!-- html related stylesheets for named templates -->
|
54
|
<xsl:include href="htm-tpl-cssandscripts.xsl"/>
|
55
|
<xsl:include href="htm-tpl-apparatus.xsl"/>
|
56
|
<xsl:include href="htm-tpl-lang.xsl"/>
|
57
|
<xsl:include href="htm-tpl-metadata.xsl"/>
|
58
|
<xsl:include href="htm-tpl-license.xsl"/>
|
59
|
<xsl:include href="htm-tpl-sqbrackets.xsl"/>
|
60
|
|
61
|
<!-- named templates for localized layout/structure (aka "metadata") -->
|
62
|
<xsl:include href="htm-tpl-structure.xsl"/>
|
63
|
<xsl:include href="htm-tpl-struct-hgv.xsl"/>
|
64
|
<xsl:include href="htm-tpl-struct-inslib.xsl"/>
|
65
|
<xsl:include href="htm-tpl-struct-rib.xsl"/>
|
66
|
<xsl:include href="htm-tpl-struct-iospe.xsl"/>
|
67
|
<xsl:include href="htm-tpl-struct-edh.xsl"/>
|
68
|
|
69
|
<!-- global named templates with no html, also used by start-txt -->
|
70
|
<xsl:include href="tpl-certlow.xsl"/>
|
71
|
<xsl:include href="tpl-text.xsl"/>
|
72
|
|
73
|
|
74
|
|
75
|
<!-- HTML FILE -->
|
76
|
<xsl:template match="/">
|
77
|
<xsl:choose>
|
78
|
<xsl:when test="$edn-structure = 'london'">
|
79
|
<!-- this and other structure templates found in htm-tpl-struct-*.xsl -->
|
80
|
<xsl:call-template name="london-structure">
|
81
|
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
|
82
|
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
|
83
|
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
|
84
|
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
|
85
|
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
|
86
|
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
|
87
|
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
|
88
|
</xsl:call-template>
|
89
|
</xsl:when>
|
90
|
<xsl:when test="$edn-structure = 'hgv'">
|
91
|
<xsl:call-template name="hgv-structure">
|
92
|
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
|
93
|
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
|
94
|
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
|
95
|
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
|
96
|
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
|
97
|
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
|
98
|
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
|
99
|
</xsl:call-template>
|
100
|
</xsl:when>
|
101
|
<xsl:when test="$edn-structure = 'inslib'">
|
102
|
<xsl:call-template name="inslib-structure">
|
103
|
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
|
104
|
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
|
105
|
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
|
106
|
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
|
107
|
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
|
108
|
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
|
109
|
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
|
110
|
</xsl:call-template>
|
111
|
</xsl:when>
|
112
|
<xsl:when test="$edn-structure = 'iospe'">
|
113
|
<xsl:call-template name="iospe-structure">
|
114
|
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
|
115
|
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
|
116
|
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
|
117
|
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
|
118
|
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
|
119
|
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
|
120
|
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
|
121
|
</xsl:call-template>
|
122
|
</xsl:when>
|
123
|
<xsl:when test="$edn-structure = 'ddbdp'">
|
124
|
<div>
|
125
|
<xsl:call-template name="default-body-structure">
|
126
|
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
|
127
|
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
|
128
|
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
|
129
|
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
|
130
|
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
|
131
|
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
|
132
|
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
|
133
|
</xsl:call-template>
|
134
|
</div>
|
135
|
</xsl:when>
|
136
|
<xsl:otherwise>
|
137
|
<xsl:call-template name="default-structure">
|
138
|
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
|
139
|
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
|
140
|
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
|
141
|
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
|
142
|
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
|
143
|
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
|
144
|
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
|
145
|
</xsl:call-template>
|
146
|
</xsl:otherwise>
|
147
|
</xsl:choose>
|
148
|
</xsl:template>
|
149
|
|
150
|
|
151
|
|
152
|
</xsl:stylesheet>
|