6
6
<fo : block margin-top =" 12.5pt" margin-bottom =" 3.1pt" hyphenate =" true" page-break-after =" avoid" >
7
7
Text
8
8
</fo : block >
9
-
10
- <xsl : call-template name =" creta-body-structure" />
11
-
12
- </xsl : template >
13
9
14
- <xsl : template name =" creta-body-structure" >
15
- <fo : block-container id =" body-{replace(//t:idno[@type='filename'], '\s+', '_')}" >
16
- <fo : block >
17
- <xsl : variable name =" edtxt" >
18
- <xsl : apply-templates select =" //t:div[@type='edition']" >
19
- <xsl : with-param name =" parm-edition-type" tunnel =" yes" ><xsl : text >interpretive</xsl : text ></xsl : with-param >
20
- <xsl : with-param name =" parm-verse-lines" tunnel =" yes" ><xsl : text >off</xsl : text ></xsl : with-param >
21
- <xsl : with-param name =" parm-line-inc" tunnel =" yes" ><xsl : text >5</xsl : text ></xsl : with-param >
22
- </xsl : apply-templates >
23
- </xsl : variable >
24
- <!-- Moded templates found in htm-tpl-sqbrackets.xsl -->
25
- <xsl : apply-templates select =" $edtxt" mode =" sqbrackets" />
26
- </fo : block >
27
-
28
- <fo : block font-weight =" 800" >Apparato</fo : block >
29
- <fo : block >
30
- <xsl : apply-templates select =" //t:div[@type='apparatus']" >
31
- <xsl : with-param name =" parm-edition-type" tunnel =" yes" ><xsl : text >interpretive</xsl : text ></xsl : with-param >
32
- <xsl : with-param name =" parm-verse-lines" tunnel =" yes" ><xsl : text >off</xsl : text ></xsl : with-param >
33
- <xsl : with-param name =" parm-line-inc" tunnel =" yes" ><xsl : text >5</xsl : text ></xsl : with-param >
34
- </xsl : apply-templates ></fo : block >
35
-
36
- <fo : block font-weight =" 800" >Traduzione</fo : block >
37
- <fo : block ><xsl : variable name =" trtxt" >
38
- <xsl : apply-templates select =" //t:div[@type='translation']" >
10
+ <xsl : call-template name =" creta-body-structure" />
11
+
12
+ </xsl : template >
13
+
14
+ <xsl : template name =" creta-body-structure" >
15
+ <fo : block-container id =" body-{replace(//t:idno[@type='filename'], '\s+', '_')}" >
16
+ <fo : block >
17
+ <xsl : variable name =" edtxt" >
18
+ <xsl : apply-templates select =" //t:div[@type='edition']" >
39
19
<xsl : with-param name =" parm-edition-type" tunnel =" yes" ><xsl : text >interpretive</xsl : text ></xsl : with-param >
40
20
<xsl : with-param name =" parm-verse-lines" tunnel =" yes" ><xsl : text >off</xsl : text ></xsl : with-param >
41
21
<xsl : with-param name =" parm-line-inc" tunnel =" yes" ><xsl : text >5</xsl : text ></xsl : with-param >
42
22
</xsl : apply-templates >
43
23
</xsl : variable >
44
- <!-- Moded templates found in htm-tpl-sqbrackets.xsl -->
45
- <xsl : apply-templates select =" $trtxt" mode =" sqbrackets" /></fo : block >
46
-
47
- <fo : block font-weight =" 800" >Commento</fo : block >
48
- <fo : block >
49
- <xsl : apply-templates select =" //t:div[@type='commentary']" >
50
- <xsl : with-param name =" parm-edition-type" tunnel =" yes" ><xsl : text >interpretive</xsl : text ></xsl : with-param >
51
- <xsl : with-param name =" parm-verse-lines" tunnel =" yes" ><xsl : text >off</xsl : text ></xsl : with-param >
52
- <xsl : with-param name =" parm-line-inc" tunnel =" yes" ><xsl : text >5</xsl : text ></xsl : with-param >
53
- </xsl : apply-templates >
54
- </fo : block >
55
-
56
- </fo : block-container >
57
- </xsl : template >
58
-
59
-
60
- <!-- various links in bibliography -->
24
+ <!-- Moded templates found in htm-tpl-sqbrackets.xsl -->
25
+ <xsl : apply-templates select =" $edtxt" mode =" sqbrackets" />
26
+ </fo : block >
27
+
28
+ <fo : block font-weight =" 800" >Apparato</fo : block >
29
+ <fo : block >
30
+ <xsl : apply-templates select =" //t:div[@type='apparatus']" >
31
+ <xsl : with-param name =" parm-edition-type" tunnel =" yes" ><xsl : text >interpretive</xsl : text ></xsl : with-param >
32
+ <xsl : with-param name =" parm-verse-lines" tunnel =" yes" ><xsl : text >off</xsl : text ></xsl : with-param >
33
+ <xsl : with-param name =" parm-line-inc" tunnel =" yes" ><xsl : text >5</xsl : text ></xsl : with-param >
34
+ </xsl : apply-templates ></fo : block >
35
+
36
+ <fo : block font-weight =" 800" >Traduzione</fo : block >
37
+ <fo : block ><xsl : variable name =" trtxt" >
38
+ <xsl : apply-templates select =" //t:div[@type='translation']" >
39
+ <xsl : with-param name =" parm-edition-type" tunnel =" yes" ><xsl : text >interpretive</xsl : text ></xsl : with-param >
40
+ <xsl : with-param name =" parm-verse-lines" tunnel =" yes" ><xsl : text >off</xsl : text ></xsl : with-param >
41
+ <xsl : with-param name =" parm-line-inc" tunnel =" yes" ><xsl : text >5</xsl : text ></xsl : with-param >
42
+ </xsl : apply-templates >
43
+ </xsl : variable >
44
+ <!-- Moded templates found in htm-tpl-sqbrackets.xsl -->
45
+ <xsl : apply-templates select =" $trtxt" mode =" sqbrackets" /></fo : block >
46
+
47
+ <fo : block font-weight =" 800" >Commento</fo : block >
48
+ <fo : block >
49
+ <xsl : apply-templates select =" //t:div[@type='commentary']" >
50
+ <xsl : with-param name =" parm-edition-type" tunnel =" yes" ><xsl : text >interpretive</xsl : text ></xsl : with-param >
51
+ <xsl : with-param name =" parm-verse-lines" tunnel =" yes" ><xsl : text >off</xsl : text ></xsl : with-param >
52
+ <xsl : with-param name =" parm-line-inc" tunnel =" yes" ><xsl : text >5</xsl : text ></xsl : with-param >
53
+ </xsl : apply-templates >
54
+ </fo : block >
55
+
56
+ </fo : block-container >
57
+ </xsl : template >
58
+
59
+
60
+ <!-- links to external resources in bibliography -->
61
61
<xsl : template mode =" creta" match =" t:div[@type='bibliography']/t:p/t:bibl/t:ptr[@target][@type='phi']" >
62
- ➚<a >< xsl : attribute name = " href " >< xsl : value-of select = " @target " /></ xsl : attribute >< xsl : attribute name = " target" >< xsl : value-of select = " '_blank' " /></ xsl : attribute > PHI</a ></ xsl : template >
63
-
62
+ ➚<a target = " _blank " href = " http://epigraphy.packhum.org/text/{@ target} " > PHI</a >
63
+ </ xsl : template >
64
64
<xsl : template mode =" creta" match =" t:div[@type='bibliography']/t:p/t:bibl/t:ptr[@target][@type='aio']" >
65
- ➚<a >< xsl : attribute name = " href " >< xsl : value-of select = " @target " /></ xsl : attribute >< xsl : attribute name = " target" >< xsl : value-of select = " '_blank' " /></ xsl : attribute > AIO</a ></ xsl : template >
66
-
65
+ ➚<a target = " _blank " href = " https://www.atticinscriptions.com/inscription/{@ target} " > AIO</a >
66
+ </ xsl : template >
67
67
<xsl : template mode =" creta" match =" t:div[@type='bibliography']/t:p/t:bibl/t:ptr[@target][@type='seg']" >
68
- ➚<a >< xsl : attribute name = " href " >< xsl : value-of select = " @target " /></ xsl : attribute >< xsl : attribute name = " target" >< xsl : value-of select = " '_blank' " /></ xsl : attribute > SEG</a ></ xsl : template >
69
-
68
+ ➚<a target = " _blank " href = " http://dx.doi.org/10.1163/1874-6772_seg_{@ target} " > SEG</a >
69
+ </ xsl : template >
70
70
<xsl : template mode =" creta" match =" t:div[@type='bibliography']/t:p/t:bibl/t:ptr[@target][@type='cgrn']" >
71
- ➚<a >< xsl : attribute name = " href " >< xsl : value-of select = " @target " /></ xsl : attribute >< xsl : attribute name = " target" >< xsl : value-of select = " '_blank' " /></ xsl : attribute > CGRN</a ></ xsl : template >
72
-
71
+ ➚<a target = " _blank " href = " http://cgrn.ulg.ac.be/file/{@ target} " > CGRN</a >
72
+ </ xsl : template >
73
73
<xsl : template mode =" creta" match =" t:div[@type='bibliography']/t:p/t:bibl/t:ptr[@target][@type='thetima']" >
74
- ➚<a >< xsl : attribute name = " href " >< xsl : value-of select = " @target " /></ xsl : attribute >< xsl : attribute name = " target " >< xsl : value-of select = " '_blank' " /></ xsl : attribute >ΘΕΤΙΜΑ</a ></ xsl : template >
75
-
74
+ ➚<a target = " _blank " href = " http://ancdialects.greek-language.gr/inscriptions/{@target} " >ΘΕΤΙΜΑ</a >
75
+ </ xsl : template >
76
76
<xsl : template mode =" creta" match =" t:div[@type='bibliography']/t:p/t:bibl/t:ptr[@target][@type='axon']" >
77
- ➚<a >< xsl : attribute name = " href " >< xsl : value-of select = " @target " /></ xsl : attribute >< xsl : attribute name = " target" >< xsl : value-of select = " '_blank' " /></ xsl : attribute > Axon</a ></ xsl : template >
78
-
77
+ ➚<a target = " _blank " href = " https://mizar.unive.it/axon/public/axon/anteprima/anteprima/idSchede/{@ target} " > Axon</a >
78
+ </ xsl : template >
79
79
<xsl : template mode =" creta" match =" t:div[@type='bibliography']/t:p/t:bibl/t:ptr[@target][@type='poinikastas']" >
80
- ➚<a >< xsl : attribute name = " href " >< xsl : value-of select = " @target " /></ xsl : attribute >< xsl : attribute name = " target" >< xsl : value-of select = " '_blank' " /></ xsl : attribute > Poinikastas</a ></ xsl : template >
81
-
80
+ ➚<a target = " _blank " href = " http://poinikastas.csad.ox.ac.uk/search-browse.shtml{@ target} " > Poinikastas</a >
81
+ </ xsl : template >
82
82
<xsl : template mode =" creta" match =" t:div[@type='bibliography']/t:p/t:bibl/t:ptr[@target][@type='ela']" >
83
- ➚<a ><xsl : attribute name =" href" ><xsl : value-of select =" @target" /></xsl : attribute ><xsl : attribute name =" target" ><xsl : value-of select =" '_blank'" /></xsl : attribute >ELA</a ></xsl : template >
84
-
83
+ ➚<a target =" _blank" href =" http://www.epigraphiclandscape.unito.it/index.php/browse/{@target}" >ELA</a >
84
+ </xsl : template >
85
+
86
+ <!-- links to full bibliographic references -->
87
+ <xsl : template mode =" creta" match =" t:div[@type='bibliography' or @type='commentary']/t:p/t:bibl/t:ref[@target]" >
88
+ <a target =" _blank" href =" ../texts/bibliografia.html#{substring-after(@target,'#')}" class =" link" ><xsl : apply-templates mode =" creta" /></a >
89
+ </xsl : template >
90
+
91
+ <!-- links to inscriptions and literary sources in the commentary -->
92
+ <xsl : template mode =" creta" match =" t:div[@type='commentary']/t:p/t:ref[@target][@type='ins']" >
93
+ <a target =" _blank" href =" ./{substring-after(@target,'#')}.html" ><xsl : apply-templates mode =" creta" /></a ></xsl : template >
94
+
95
+ <xsl : template mode =" creta" match =" t:div[@type='commentary']/t:p/t:ref[@target][@type='lit']" >
96
+ <a target =" _blank" href =" ../texts/fonti_letterarie.html{substring-after(@target, '#')}" ><xsl : apply-templates mode =" creta" /></a ></xsl : template >
97
+
98
+ <!-- links to institution sections in the commentary -->
99
+ <xsl : template mode =" creta" match =" t:div[@type='commentary']/t:p/t:ref[@target][@type='inst']" >
100
+ <a target =" _blank" href =" ../texts/istituzioni.html{@target}" ><xsl : apply-templates mode =" creta" /></a ></xsl : template >
101
+
102
+
85
103
<!-- bold chosen edition in bibliography -->
86
104
<xsl : template mode =" creta" match =" t:bibl[@type='main_edition']" ><strong ><xsl : apply-templates mode =" creta" /></strong ></xsl : template >
87
-
88
-
89
- <!-- lb in bibliography and commentary -->
90
- <xsl : template mode =" creta" match =" t:div[@type='bibliography' or @type='commentary']/t:p//t:lb" ><br /><xsl : apply-templates /></xsl : template >
105
+
106
+ <!-- p in bibliography, commentary, translation -->
107
+ <xsl : template mode =" creta" match =" t:div[@type='bibliography' or @type='commentary' or @type='translation']/t:p" ><p ><xsl : apply-templates mode =" creta" /></p ></xsl : template >
91
108
92
109
<!-- emph in bibliography and commentary -->
93
110
<xsl : template mode =" creta" match =" t:div[@type='bibliography' or @type='commentary']/t:p//t:emph" ><strong ><xsl : apply-templates /></strong ></xsl : template >
94
111
95
- <!-- foreign words in bibliography and commentary -->
96
- <xsl : template mode =" creta" match =" t:div[@type='bibliography' or @type='commentary']/t:p//t:foreign" ><i ><xsl : apply-templates /></i ></xsl : template >
97
-
98
- <!-- apices in bibliography and commentary -->
99
- <xsl : template mode =" creta" match =" t:div[@type='bibliography' or @type='commentary']//t:hi[@rend='superscript']" ><sup ><xsl : apply-templates /></sup ></xsl : template >
100
-
101
- <!-- simple link to full bibliographic references -->
102
- <xsl : template mode =" creta" match =" t:div[@type='bibliography' or @type='commentary']/t:p/t:bibl/t:ref[@target]" >
103
- <xsl : variable name =" bib-id" select =" substring-after(@target,'#')" />
104
- <a ><xsl : attribute name =" class" ><xsl : value-of select =" 'link'" /></xsl : attribute ><xsl : attribute name =" href" ><xsl : value-of select =" concat('../texts/riferimenti_bibliografici.html#',$bib-id)" /></xsl : attribute ><xsl : attribute name =" target" ><xsl : value-of select =" '_blank'" /></xsl : attribute ><xsl : apply-templates mode =" creta" /></a >
105
- </xsl : template >
106
-
107
- <!-- ref for mentions of inscriptions and literary sources in the commentary -->
108
- <xsl : template mode =" creta" match =" t:div[@type='commentary']/t:p/t:ref[@target]" >
109
- <a ><xsl : attribute name =" href" ><xsl : value-of select =" @target" /></xsl : attribute ><xsl : attribute name =" target" ><xsl : value-of select =" '_blank'" /></xsl : attribute ><xsl : apply-templates mode =" creta" /></a ></xsl : template >
110
-
111
- <!-- apices in apparatus -->
112
- <xsl : template mode =" creta" match =" t:div[@type='apparatus']//t:hi[@rend='superscript']" ><sup ><xsl : apply-templates /></sup ></xsl : template >
113
-
114
- <!-- foreign words in apparatus -->
115
- <xsl : template match =" t:div[@type='apparatus']//t:foreign" ><i ><xsl : apply-templates mode =" creta" /></i ></xsl : template >
112
+ <!-- apices in bibliography, commentary, apparatus -->
113
+ <xsl : template mode =" creta" match =" t:div[@type='bibliography' or @type='commentary' or @type='apparatus']//t:hi[@rend='superscript']" ><sup ><xsl : apply-templates /></sup ></xsl : template >
116
114
117
- <!-- foreign words in header -->
118
- <xsl : template match =" t:teiHeader//t:foreign" ><i ><xsl : apply-templates mode =" creta" /></i ></xsl : template >
119
-
120
115
</xsl : stylesheet >
0 commit comments