Revision 32336
Added by Andrea Mannocci over 9 years ago
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/htm-teilistanditem.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: htm-teilistanditem.xsl 1725 2012-01-10 16:08:31Z gabrielbodard $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="t" |
|
5 |
version="2.0"> |
|
6 |
|
|
7 |
<xsl:template match="t:list"> |
|
8 |
<xsl:choose> |
|
9 |
<xsl:when test="@type = 'ordered'"> |
|
10 |
<ol> |
|
11 |
<xsl:apply-templates/> |
|
12 |
</ol> |
|
13 |
</xsl:when> |
|
14 |
<xsl:otherwise> |
|
15 |
<ul> |
|
16 |
<xsl:apply-templates/> |
|
17 |
</ul> |
|
18 |
</xsl:otherwise> |
|
19 |
</xsl:choose> |
|
20 |
</xsl:template> |
|
21 |
|
|
22 |
|
|
23 |
<xsl:template match="t:item"> |
|
24 |
<li> |
|
25 |
<xsl:apply-templates/> |
|
26 |
</li> |
|
27 |
</xsl:template> |
|
28 |
|
|
29 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/txt-tpl-apparatus.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: txt-tpl-apparatus.xsl 2163 2014-04-10 20:01:04Z hcayless $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" |
|
5 |
version="2.0"> |
|
6 |
<!-- Apparatus creation: look in tpl-apparatus.xsl for documentation --> |
|
7 |
<xsl:include href="tpl-apparatus.xsl"/> |
|
8 |
|
|
9 |
<!-- Apparatus framework --> |
|
10 |
<xsl:template name="tpl-apparatus"> |
|
11 |
<!-- An apparatus is only created if one of the following is true --> |
|
12 |
<xsl:if test=".//t:choice[child::t:sic and child::t:corr] | .//t:choice[child::t:orig and child::t:reg] | .//t:subst | .//t:app | |
|
13 |
.//t:hi[@rend = 'diaeresis' or @rend = 'grave' or @rend = 'acute' or @rend = 'asper' or @rend = 'lenis' or @rend = 'circumflex'] | |
|
14 |
.//t:del[@rend='slashes' or @rend='cross-strokes'] | .//t:milestone[@rend = 'box']"> |
|
15 |
|
|
16 |
<xsl:text> |
|
17 |
|
|
18 |
Apparatus |
|
19 |
|
|
20 |
</xsl:text> |
|
21 |
<!-- An entry is created for-each of the following instances --> |
|
22 |
<xsl:for-each select=".//t:choice[child::t:sic and child::t:corr] | .//t:choice[child::t:orig and child::t:reg] | .//t:subst | .//t:app | |
|
23 |
.//t:hi[@rend = 'diaeresis' or @rend = 'grave' or @rend = 'acute' or @rend = 'asper' or @rend = 'lenis' or @rend = 'circumflex'] | |
|
24 |
.//t:del[@rend='slashes' or @rend='cross-strokes'] | .//t:milestone[@rend = 'box']"> |
|
25 |
|
|
26 |
<xsl:call-template name="app-link"> |
|
27 |
<xsl:with-param name="location" select="'apparatus'"/> |
|
28 |
</xsl:call-template> |
|
29 |
|
|
30 |
<!-- Found in tpl-apparatus.xsl --> |
|
31 |
<xsl:call-template name="ddbdp-app"> |
|
32 |
<xsl:with-param name="apptype"> |
|
33 |
<xsl:choose> |
|
34 |
<xsl:when test="self::t:choice[child::t:orig and child::t:reg]"> |
|
35 |
<xsl:text>origreg</xsl:text> |
|
36 |
</xsl:when> |
|
37 |
<xsl:when test="self::t:choice[child::t:sic and child::t:corr]"> |
|
38 |
<xsl:text>siccorr</xsl:text> |
|
39 |
</xsl:when> |
|
40 |
<xsl:when test="self::t:subst"> |
|
41 |
<xsl:text>subst</xsl:text> |
|
42 |
</xsl:when> |
|
43 |
<xsl:when test="self::t:app[@type='alternative']"> |
|
44 |
<xsl:text>appalt</xsl:text> |
|
45 |
</xsl:when> |
|
46 |
<xsl:when test="self::t:app[@type='editorial'][starts-with(t:lem/@resp,'BL ')]"> |
|
47 |
<xsl:text>appbl</xsl:text> |
|
48 |
</xsl:when> |
|
49 |
<xsl:when test="self::t:app[@type='editorial'][starts-with(t:lem/@resp,'PN ')]"> |
|
50 |
<xsl:text>apppn</xsl:text> |
|
51 |
</xsl:when> |
|
52 |
<xsl:when test="self::t:app[@type='editorial']"> |
|
53 |
<xsl:text>apped</xsl:text> |
|
54 |
</xsl:when> |
|
55 |
</xsl:choose> |
|
56 |
</xsl:with-param> |
|
57 |
</xsl:call-template> |
|
58 |
|
|
59 |
<!-- Only creates a new line if the following is not true --> |
|
60 |
<!--<xsl:if test="not(descendant::t:choice | descendant::t:subst | descendant::t:app)"> |
|
61 |
<xsl:text> |
|
62 |

</xsl:text> |
|
63 |
</xsl:if>--> |
|
64 |
</xsl:for-each> |
|
65 |
<!-- End of apparatus --> |
|
66 |
<xsl:text> |
|
67 |

 |
|
68 |

</xsl:text> |
|
69 |
</xsl:if> |
|
70 |
</xsl:template> |
|
71 |
|
|
72 |
|
|
73 |
<xsl:template name="lbrk-app"> |
|
74 |
<xsl:text> |
|
75 |

</xsl:text> |
|
76 |
</xsl:template> |
|
77 |
|
|
78 |
<!-- Used in txt-{element} and above to indicate apparatus --> |
|
79 |
<xsl:template name="app-link"> |
|
80 |
<!-- location defines the direction of linking --> |
|
81 |
<xsl:param name="location"/> |
|
82 |
|
|
83 |
<!-- Only produces an indicator if it is not nested in an element that would be in apparatus --> |
|
84 |
<xsl:if test="not(ancestor::t:choice or ancestor::t:subst or ancestor::t:app or |
|
85 |
ancestor::t:hi[@rend = 'diaeresis' or @rend = 'grave' or @rend = 'acute' or |
|
86 |
@rend = 'asper' or @rend = 'lenis' or @rend = 'circumflex'] | |
|
87 |
ancestor::t:del[@rend='slashes' or @rend='cross-strokes'])"> |
|
88 |
<xsl:choose> |
|
89 |
<xsl:when test="$location = 'text'"> |
|
90 |
<xsl:text>(*)</xsl:text> |
|
91 |
</xsl:when> |
|
92 |
</xsl:choose> |
|
93 |
</xsl:if> |
|
94 |
</xsl:template> |
|
95 |
|
|
96 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/txt-teimilestone.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: txt-teimilestone.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 |
version="2.0"> |
|
6 |
<!-- More specific templates in teimilestone.xsl --> |
|
7 |
|
|
8 |
<xsl:template match="t:milestone"> |
|
9 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
10 |
<xsl:choose> |
|
11 |
<xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch') and ancestor::t:div[@type = 'translation']"> |
|
12 |
<xsl:if test="@rend = 'break'"> |
|
13 |
<xsl:text> |
|
14 |

</xsl:text> |
|
15 |
</xsl:if> |
|
16 |
<xsl:value-of select="@n"/> |
|
17 |
<xsl:text> </xsl:text> |
|
18 |
</xsl:when> |
|
19 |
<xsl:when test="@rend = 'paragraphos'"> |
|
20 |
<xsl:choose> |
|
21 |
<xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch')"> |
|
22 |
<xsl:if test="not(parent::t:supplied)"> |
|
23 |
<xsl:text> |
|
24 |

</xsl:text> |
|
25 |
</xsl:if> |
|
26 |
<xsl:text>————————</xsl:text> |
|
27 |
</xsl:when> |
|
28 |
<xsl:otherwise> |
|
29 |
<xsl:text> |
|
30 |

</xsl:text> |
|
31 |
<xsl:text>paragraphos</xsl:text> |
|
32 |
</xsl:otherwise> |
|
33 |
</xsl:choose> |
|
34 |
</xsl:when> |
|
35 |
</xsl:choose> |
|
36 |
</xsl:template> |
|
37 |
|
|
38 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/teiref.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: teiref.xsl 2161 2014-04-10 13:18:59Z hcayless $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="t" version="2.0"> |
|
5 |
<!-- Called from [htm|txt]-teiref.xsl --> |
|
6 |
|
|
7 |
<xsl:template name="reprint-text"> |
|
8 |
<xsl:param name="direction"/> |
|
9 |
|
|
10 |
<xsl:text>[</xsl:text> |
|
11 |
<xsl:text>Reprinted </xsl:text> |
|
12 |
<xsl:value-of select="$direction"/> |
|
13 |
<xsl:text>: </xsl:text> |
|
14 |
<xsl:call-template name="divide-links"> |
|
15 |
<xsl:with-param name="val" select="@n"/> |
|
16 |
</xsl:call-template> |
|
17 |
<xsl:text>] </xsl:text> |
|
18 |
<xsl:apply-templates/> |
|
19 |
</xsl:template> |
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
<!-- Templates used for reprint in ddbdp --> |
|
24 |
<xsl:template name="divide-links"> |
|
25 |
<xsl:param name="val"/> |
|
26 |
<xsl:variable name="cur-string"> |
|
27 |
<xsl:choose> |
|
28 |
<xsl:when test="contains($val, '|')"> |
|
29 |
<xsl:value-of select="substring-before(normalize-space($val), '|')"/> |
|
30 |
</xsl:when> |
|
31 |
<xsl:otherwise> |
|
32 |
<xsl:value-of select="$val"/> |
|
33 |
</xsl:otherwise> |
|
34 |
</xsl:choose> |
|
35 |
</xsl:variable> |
|
36 |
<xsl:variable name="pass-string" select="substring-after(normalize-space($val), '|')"/> |
|
37 |
|
|
38 |
<xsl:call-template name="build-path"> |
|
39 |
<xsl:with-param name="val" select="$cur-string"/> |
|
40 |
<xsl:with-param name="fol-val"> |
|
41 |
<xsl:if test="string($pass-string)"> |
|
42 |
<xsl:text>yes</xsl:text> |
|
43 |
</xsl:if> |
|
44 |
</xsl:with-param> |
|
45 |
</xsl:call-template> |
|
46 |
|
|
47 |
<xsl:if test="string($pass-string)"> |
|
48 |
<xsl:call-template name="divide-links"> |
|
49 |
<xsl:with-param name="val" select="$pass-string"/> |
|
50 |
</xsl:call-template> |
|
51 |
</xsl:if> |
|
52 |
</xsl:template> |
|
53 |
|
|
54 |
<xsl:template name="build-path"> |
|
55 |
<xsl:param name="val"/> |
|
56 |
<xsl:param name="fol-val"/> |
|
57 |
|
|
58 |
<xsl:variable name="cur-file-vol-doc" |
|
59 |
select="substring-after(normalize-space(/t:TEI/@n), ';')"/> |
|
60 |
<xsl:variable name="cur-file-vol" select="substring-before($cur-file-vol-doc, ';')"/> |
|
61 |
|
|
62 |
<xsl:variable name="val-col" select="substring-before($val, ';')"/> |
|
63 |
<xsl:variable name="val-vol-doc" select="substring-after($val, ';')"/> |
|
64 |
<xsl:variable name="val-vol" select="substring-before($val-vol-doc, ';')"/> |
|
65 |
<xsl:variable name="val-doc"> |
|
66 |
<xsl:value-of select="$val-col"/> |
|
67 |
<xsl:text>.</xsl:text> |
|
68 |
<xsl:if test="string(normalize-space($val-vol))"> |
|
69 |
<xsl:value-of select="$val-vol"/> |
|
70 |
<xsl:text>.</xsl:text> |
|
71 |
</xsl:if> |
|
72 |
<xsl:value-of select="substring-after($val-vol-doc, ';')"/> |
|
73 |
</xsl:variable> |
|
74 |
|
|
75 |
<xsl:variable name="href-link" select="concat('/ddbdp/',$val)"/> |
|
76 |
|
|
77 |
<!-- Found in [htm|txt]-teiref.xsl --> |
|
78 |
<xsl:call-template name="link-text"> |
|
79 |
<xsl:with-param name="href-link" select="$href-link"/> |
|
80 |
<xsl:with-param name="val-doc" select="$val-doc"/> |
|
81 |
</xsl:call-template> |
|
82 |
|
|
83 |
<xsl:if test="$fol-val = 'yes'"> |
|
84 |
<xsl:text> | </xsl:text> |
|
85 |
</xsl:if> |
|
86 |
</xsl:template> |
|
87 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/txt-teihead.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: txt-teihead.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 |
version="2.0"> |
|
6 |
|
|
7 |
<xsl:template match="t:div/t:head"> |
|
8 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
9 |
<xsl:choose> |
|
10 |
<xsl:when test="starts-with($parm-leiden-style, 'edh')"/> |
|
11 |
<xsl:otherwise> |
|
12 |
<xsl:apply-templates/> |
|
13 |
<xsl:text> |
|
14 |

</xsl:text> |
|
15 |
</xsl:otherwise> |
|
16 |
</xsl:choose> |
|
17 |
</xsl:template> |
|
18 |
|
|
19 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/tpl-text.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: tpl-text.xsl 2185 2014-06-04 17:26:44Z gabrielbodard $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="t" |
|
5 |
version="2.0"> |
|
6 |
|
|
7 |
<xsl:template match="text()[not(ancestor::t:note)]"> |
|
8 |
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param> |
|
9 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
10 |
<xsl:choose> |
|
11 |
<!-- strip all spaces and punctuation in diplomatic edition --> |
|
12 |
<xsl:when test="$parm-edition-type = 'diplomatic' and ancestor::t:div[@type='edition'] and not(ancestor::t:head)"> |
|
13 |
<xsl:variable name="apos"> |
|
14 |
<xsl:text><![CDATA[']]></xsl:text> |
|
15 |
</xsl:variable> |
|
16 |
<xsl:value-of select="translate(translate(translate(.,$apos,''), '··
 ,.;‘’', ''), $all-grc, $grc-upper-strip)"/> |
|
17 |
</xsl:when> |
|
18 |
<!-- omit space between abbreviation and (deleted) "f." or "l." from EDH names mode --> |
|
19 |
<xsl:when test="$parm-leiden-style='edh-names' and |
|
20 |
normalize-space(.) = '' and |
|
21 |
following-sibling::t:*[1][local-name()='w'][@lemma='filius' or @lemma='libertus' or @lemma='filia' or @lemma='liberta'] and |
|
22 |
preceding-sibling::t:*[1][descendant-or-self::t:expan]"/> |
|
23 |
<xsl:otherwise> |
|
24 |
<xsl:if test="matches(., '^\s') and not(matches(., '^\s+$')) and not(preceding-sibling::t:*[1][self::t:lb[@break='no']])"> |
|
25 |
<xsl:text> </xsl:text> |
|
26 |
</xsl:if> |
|
27 |
<xsl:choose> |
|
28 |
<xsl:when test="$parm-leiden-style='edh-names'"> |
|
29 |
<xsl:value-of select="."/> |
|
30 |
</xsl:when> |
|
31 |
<xsl:otherwise> |
|
32 |
<xsl:value-of select="normalize-space(.)"/> |
|
33 |
</xsl:otherwise> |
|
34 |
</xsl:choose> |
|
35 |
<xsl:if test="matches(.,'\s$') and not(following-sibling::t:*[1][self::t:lb[@break='no']])"> |
|
36 |
<xsl:text> </xsl:text> |
|
37 |
</xsl:if> |
|
38 |
</xsl:otherwise> |
|
39 |
</xsl:choose> |
|
40 |
</xsl:template> |
|
41 |
|
|
42 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/htm-teiforeign.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: htm-teiforeign.xsl 1725 2012-01-10 16:08:31Z gabrielbodard $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="t" |
|
5 |
version="2.0"> |
|
6 |
|
|
7 |
<xsl:template match="t:foreign"> |
|
8 |
<span class="lang"> |
|
9 |
<!-- Found in htm-tpl-lang.xsl --> |
|
10 |
<xsl:call-template name="attr-lang"/> |
|
11 |
<xsl:apply-templates/> |
|
12 |
</span> |
|
13 |
</xsl:template> |
|
14 |
|
|
15 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/teiorigandreg.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: teiorigandreg.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 |
exclude-result-prefixes="t" version="2.0"> |
|
6 |
<!-- Contains templates for choice/orig and choice/reg and surplus --> |
|
7 |
|
|
8 |
<xsl:template match="t:choice/t:orig"> |
|
9 |
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param> |
|
10 |
<xsl:param name="parm-edn-structure" tunnel="yes" required="no"></xsl:param> |
|
11 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
12 |
<xsl:choose> |
|
13 |
<xsl:when test="$parm-edn-structure = 'rib'"> |
|
14 |
<!-- Ignore --> |
|
15 |
</xsl:when> |
|
16 |
<xsl:otherwise> |
|
17 |
<xsl:apply-templates/> |
|
18 |
<xsl:if test="$parm-leiden-style = 'ddbdp'"> |
|
19 |
<!-- found in tpl-certlow.xsl --> |
|
20 |
<xsl:call-template name="cert-low"/> |
|
21 |
<!-- if context is inside the app-part of an app-like element, print reg as well --> |
|
22 |
<xsl:if test="ancestor::t:*[local-name()=('reg','corr','rdg') |
|
23 |
or self::t:del[@rend='corrected']]"> |
|
24 |
<!--<xsl:if test="ancestor::t:*[local-name()=('orig','reg','sic','corr','lem','rdg') |
|
25 |
or self::t:del[@rend='corrected'] |
|
26 |
or self::t:add[@place='inline']][1][local-name()=('reg','corr','del','rdg')]">--> |
|
27 |
<xsl:text> (</xsl:text><xsl:for-each select="../t:reg"> |
|
28 |
<xsl:sort select="position()" order="descending"/> |
|
29 |
<xsl:call-template name="multreg"/> |
|
30 |
</xsl:for-each><xsl:text>)</xsl:text> |
|
31 |
</xsl:if> |
|
32 |
</xsl:if> |
|
33 |
<xsl:if test="$parm-leiden-style='iospe' and ../t:reg and $parm-edition-type='interpretive'"> |
|
34 |
<!-- in iospe style, reg is printed in parenthesis --> |
|
35 |
<xsl:text> (pro </xsl:text> |
|
36 |
<xsl:apply-templates select="../t:reg/node()"/> |
|
37 |
<xsl:text>)</xsl:text> |
|
38 |
</xsl:if> |
|
39 |
</xsl:otherwise> |
|
40 |
</xsl:choose> |
|
41 |
</xsl:template> |
|
42 |
|
|
43 |
<xsl:template match="t:choice/t:reg"/> |
|
44 |
<!-- reg is currently not displayed in text in any Leiden-style |
|
45 |
(except "iospe", see under orig, above) --> |
|
46 |
|
|
47 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/htm-tpl-struct-iospe.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: htm-tpl-struct-iospe.xsl 1434 2011-05-31 18:23:56Z gabrielbodard $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="t" version="2.0"> |
|
5 |
<!-- Contains named templates for IOSPE file structure (aka "metadata" aka "supporting data") --> |
|
6 |
|
|
7 |
<!-- Called from htm-tpl-structure.xsl --> |
|
8 |
|
|
9 |
<xsl:template name="iospe-structure"> |
|
10 |
<xsl:variable name="title"> |
|
11 |
<xsl:choose> |
|
12 |
<xsl:when test="//t:titleStmt/t:title/text() and matches(//t:idno[@type='filename'], '\d+\.\d+')"> |
|
13 |
<xsl:number value="substring-before(//t:idno[@type='filename'],'.')" format="I"/> |
|
14 |
<xsl:text> </xsl:text> |
|
15 |
<xsl:number value="substring-after(//t:idno[@type='filename'],'.')" format="1"/> |
|
16 |
<xsl:text>. </xsl:text> |
|
17 |
<xsl:value-of select="//t:origPlace[1]"/> |
|
18 |
<xsl:text>. </xsl:text> |
|
19 |
<xsl:value-of select="//t:titleStmt/t:title[child::text()][1]"/> |
|
20 |
<xsl:if test="not(//t:titleStmt/t:title[child::text()][1][child::t:origDate])"> |
|
21 |
<xsl:text>, </xsl:text> |
|
22 |
<xsl:value-of select="//t:origDate[1]"/> |
|
23 |
</xsl:if> |
|
24 |
</xsl:when> |
|
25 |
<xsl:when test="//t:titleStmt/t:title/text()"> |
|
26 |
<xsl:value-of select="//t:titleStmt/t:title"/> |
|
27 |
</xsl:when> |
|
28 |
<xsl:when test="//t:sourceDesc//t:bibl/text()"> |
|
29 |
<xsl:value-of select="//t:sourceDesc//t:bibl"/> |
|
30 |
</xsl:when> |
|
31 |
<xsl:when test="//t:idno[@type='filename']/text()"> |
|
32 |
<xsl:value-of select="//t:idno[@type='filename']"/> |
|
33 |
</xsl:when> |
|
34 |
<xsl:otherwise> |
|
35 |
<xsl:text>EpiDoc example output, IOSPE style</xsl:text> |
|
36 |
</xsl:otherwise> |
|
37 |
</xsl:choose> |
|
38 |
</xsl:variable> |
|
39 |
<html> |
|
40 |
<head> |
|
41 |
<title> |
|
42 |
<xsl:value-of select="$title"/> |
|
43 |
</title> |
|
44 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> |
|
45 |
<!-- Found in htm-tpl-cssandscripts.xsl --> |
|
46 |
<xsl:call-template name="css-script"/> |
|
47 |
</head> |
|
48 |
<body> |
|
49 |
<h1> |
|
50 |
<xsl:value-of select="$title"/> |
|
51 |
</h1> |
|
52 |
<div id="stone"> |
|
53 |
<h3 class="iospe">Monument</h3> |
|
54 |
<dl class="iospe"> |
|
55 |
<dt width="150" align="left">Type of monument</dt> |
|
56 |
<dd> |
|
57 |
<xsl:choose> |
|
58 |
<xsl:when test="//t:support//t:objectType//text()"> |
|
59 |
<xsl:value-of select="//t:support//t:objectType"/> |
|
60 |
</xsl:when> |
|
61 |
<xsl:otherwise>Not specified</xsl:otherwise> |
|
62 |
</xsl:choose> |
|
63 |
</dd> |
|
64 |
<dt width="150" align="left">Material</dt> |
|
65 |
<dd> |
|
66 |
<xsl:choose> |
|
67 |
<xsl:when test="//t:support//t:material//text()"> |
|
68 |
<xsl:value-of select="//t:support//t:material"/> |
|
69 |
</xsl:when> |
|
70 |
<xsl:otherwise>Not specified</xsl:otherwise> |
|
71 |
</xsl:choose> |
|
72 |
</dd> |
|
73 |
<dt width="150" align="left">Description and condition</dt> |
|
74 |
<dd> |
|
75 |
<xsl:choose> |
|
76 |
<xsl:when test="//t:support//t:p//text()"> |
|
77 |
<xsl:value-of select="//t:support//t:p"/> |
|
78 |
</xsl:when> |
|
79 |
<xsl:otherwise>Not specified</xsl:otherwise> |
|
80 |
</xsl:choose> |
|
81 |
</dd> |
|
82 |
</dl> |
|
83 |
|
|
84 |
<dl class="iospe"> |
|
85 |
<dt width="150" align="left">Find place</dt> |
|
86 |
<dd> |
|
87 |
<xsl:choose> |
|
88 |
<xsl:when test="//t:provenance[@type='found']//t:placeName[@type='ancientFindspot']//text()"> |
|
89 |
<xsl:value-of select="//t:provenance[@type='found']//t:placeName[@type='ancientFindspot']"/> |
|
90 |
</xsl:when> |
|
91 |
<xsl:otherwise>Unknown</xsl:otherwise> |
|
92 |
</xsl:choose> |
|
93 |
</dd> |
|
94 |
<dt width="150" align="left">Find circumstances</dt> |
|
95 |
<dd> |
|
96 |
<xsl:choose> |
|
97 |
<xsl:when test="//t:provenance[@type='found']//t:rs[@type='circumstances']//text()"> |
|
98 |
<xsl:value-of select="//t:provenance[@type='found']//t:rs[@type='circumstances']"/> |
|
99 |
</xsl:when> |
|
100 |
<xsl:otherwise>Unknown</xsl:otherwise> |
|
101 |
</xsl:choose> |
|
102 |
</dd> |
|
103 |
<dt width="150" align="left">Find context</dt> |
|
104 |
<dd> |
|
105 |
<xsl:choose> |
|
106 |
<xsl:when test="//t:provenance[@type='found']//t:rs[@type='context']//text()"> |
|
107 |
<xsl:value-of select="//t:provenance[@type='found']//t:rs[@type='context']"/> |
|
108 |
</xsl:when> |
|
109 |
<xsl:otherwise>Unknown</xsl:otherwise> |
|
110 |
</xsl:choose> |
|
111 |
</dd> |
|
112 |
<dt width="150" align="left">Modern location</dt> |
|
113 |
<dd> |
|
114 |
<xsl:choose> |
|
115 |
<xsl:when test="//t:provenance[@type='observed']//text()"> |
|
116 |
<xsl:value-of select="//t:provenance[@type='observed']"/> |
|
117 |
</xsl:when> |
|
118 |
<xsl:otherwise>Unknown</xsl:otherwise> |
|
119 |
</xsl:choose> |
|
120 |
</dd> |
|
121 |
<dt width="150" align="left">Dimensions</dt> |
|
122 |
<dd> |
|
123 |
<xsl:choose> |
|
124 |
<xsl:when test="//t:support/t:dimensions//text()[not(normalize-space(.)=' ')]"> |
|
125 |
<xsl:if test="//t:support/t:dimensions/t:height/text()[not(normalize-space(.)=' ')]">H. <xsl:value-of select="//t:support/t:dimensions/t:height"/>,</xsl:if> |
|
126 |
<xsl:if test="//t:support/t:dimensions/t:width/text()[not(normalize-space(.)=' ')]">W. <xsl:value-of select="//t:support/t:dimensions/t:width"/>,</xsl:if> |
|
127 |
<xsl:if test="//t:support/t:dimensions/t:depth/text()[not(normalize-space(.)=' ')]">Th. <xsl:value-of select="//t:support/t:dimensions/t:depth"/></xsl:if> |
|
128 |
<xsl:if test="//t:support/t:dimensions/t:dim[@type='diameter']/text()[not(normalize-space(.)=' ')]">, Diam. <xsl:value-of select="//t:support/t:dimensions/t:dim[@type='diameter']"/></xsl:if> |
|
129 |
</xsl:when> |
|
130 |
<xsl:otherwise>Unknown</xsl:otherwise> |
|
131 |
</xsl:choose> |
|
132 |
</dd> |
|
133 |
<dt width="150" align="left">Institution and inventory</dt> |
|
134 |
<dd> |
|
135 |
<xsl:choose> |
|
136 |
<xsl:when test="//t:msIdentifier//t:repository/text() and //t:msIdentifier//t:idno/text()"> |
|
137 |
<xsl:value-of select="//t:msIdentifier//t:repository"/> |
|
138 |
<xsl:value-of select="//t:msIdentifier//t:idno"/> |
|
139 |
</xsl:when> |
|
140 |
<xsl:when test="//t:msIdentifier//t:repository/text()"> |
|
141 |
<xsl:value-of select="//t:msIdentifier//t:repository"/> |
|
142 |
<xsl:text>no inv. no.</xsl:text> |
|
143 |
</xsl:when> |
|
144 |
<xsl:otherwise>Unknown</xsl:otherwise> |
|
145 |
</xsl:choose> |
|
146 |
</dd> |
|
147 |
</dl> |
|
148 |
</div> |
|
149 |
|
|
150 |
<div id="text-field"> |
|
151 |
<h3 class="iospe">Inscribed field</h3> |
|
152 |
<dl class="iospe"> |
|
153 |
<xsl:if test="//t:layout/@ana"> |
|
154 |
<dt width="150" align="left">Faces code</dt> |
|
155 |
<dd><xsl:value-of select="//t:layout/@ana"/></dd> |
|
156 |
</xsl:if> |
|
157 |
<dt width="150" align="left">Placement of text</dt> |
|
158 |
<dd> |
|
159 |
<xsl:choose> |
|
160 |
<xsl:when test="//t:layout/text()"> |
|
161 |
<xsl:value-of select="//t:layout"/> |
|
162 |
</xsl:when> |
|
163 |
<xsl:otherwise>Not specified</xsl:otherwise> |
|
164 |
</xsl:choose> |
|
165 |
</dd> |
|
166 |
<dt width="150" align="left">Style of lettering</dt> |
|
167 |
<dd> |
|
168 |
<xsl:choose> |
|
169 |
<xsl:when test="//t:handNote//text()[not(ancestor::t:height)]"> |
|
170 |
<xsl:value-of select="/t:handNote//text()[not(ancestor::t:height)]"/> |
|
171 |
</xsl:when> |
|
172 |
<xsl:otherwise>Not specified</xsl:otherwise> |
|
173 |
</xsl:choose> |
|
174 |
</dd> |
|
175 |
<dt width="150" align="left">Letterheights</dt> |
|
176 |
<dd> |
|
177 |
<xsl:choose> |
|
178 |
<xsl:when test="//t:handNote//t:height/text()"> |
|
179 |
<xsl:value-of select="//t:handNote//t:height"/> |
|
180 |
</xsl:when> |
|
181 |
<xsl:otherwise>Not specified</xsl:otherwise> |
|
182 |
</xsl:choose> |
|
183 |
</dd> |
|
184 |
</dl> |
|
185 |
</div> |
|
186 |
|
|
187 |
<div id="text"> |
|
188 |
<h3 class="iospe">Text</h3> |
|
189 |
<dl class="iospe"> |
|
190 |
|
|
191 |
<dt>Origin</dt> |
|
192 |
<dd> |
|
193 |
<xsl:choose> |
|
194 |
<xsl:when test="//t:origin/t:origPlace/text()"> |
|
195 |
<xsl:value-of select="//t:origin/t:origPlace"/> |
|
196 |
</xsl:when> |
|
197 |
<xsl:otherwise>Not specified</xsl:otherwise> |
|
198 |
</xsl:choose> |
|
199 |
</dd> |
|
200 |
<dt>Category</dt> |
|
201 |
<dd> |
|
202 |
<xsl:choose> |
|
203 |
<xsl:when test="//t:msContents/t:summary/text()"> |
|
204 |
<xsl:value-of select="//t:msContents/t:summary"/> |
|
205 |
</xsl:when> |
|
206 |
<xsl:otherwise>Not specified</xsl:otherwise> |
|
207 |
</xsl:choose> |
|
208 |
</dd> |
|
209 |
<dt>Date</dt> |
|
210 |
<dd> |
|
211 |
<xsl:choose> |
|
212 |
<xsl:when test="//t:origin/t:origDate/text()"> |
|
213 |
<xsl:value-of select="//t:origin/t:origDate"/> |
|
214 |
</xsl:when> |
|
215 |
<xsl:otherwise>Not specified</xsl:otherwise> |
|
216 |
</xsl:choose></dd> |
|
217 |
<dt>Dating criteria</dt> |
|
218 |
<dd> |
|
219 |
<xsl:choose> |
|
220 |
<xsl:when test="//t:origin/t:origDate/@evidence"> |
|
221 |
<xsl:for-each select="tokenize(//t:origin/t:origDate[@evidence],' ')"> |
|
222 |
<xsl:value-of select="translate(.,'-',' ')"/> |
|
223 |
<xsl:if test="position()!=last()"> |
|
224 |
<xsl:text>, </xsl:text> |
|
225 |
</xsl:if> |
|
226 |
</xsl:for-each> |
|
227 |
</xsl:when> |
|
228 |
<xsl:otherwise> |
|
229 |
<xsl:text>n/a</xsl:text> |
|
230 |
</xsl:otherwise> |
|
231 |
</xsl:choose> |
|
232 |
</dd> |
|
233 |
<dt>Editions</dt> |
|
234 |
<dd> |
|
235 |
<xsl:choose> |
|
236 |
<xsl:when test="//t:body//t:div[@type='bibliography']//text()"> |
|
237 |
<xsl:apply-templates select="//t:body//t:div[@type='bibliography']"/> |
|
238 |
</xsl:when> |
|
239 |
<xsl:otherwise>Unpublished</xsl:otherwise> |
|
240 |
</xsl:choose></dd> |
|
241 |
</dl> |
|
242 |
|
|
243 |
<div id="edition" class="iospe"> |
|
244 |
<!-- Edited text output --> |
|
245 |
<xsl:variable name="edtxt"> |
|
246 |
<xsl:apply-templates select="//t:div[@type='edition']"/> |
|
247 |
</xsl:variable> |
|
248 |
<!-- Moded templates found in htm-tpl-sqbrackets.xsl --> |
|
249 |
<xsl:apply-templates select="$edtxt" mode="sqbrackets"/> |
|
250 |
</div> |
|
251 |
<div id="apparatus" class="iospe"> |
|
252 |
<h4 class="iospe">Apparatus</h4> |
|
253 |
<!-- Apparatus text output --> |
|
254 |
<xsl:variable name="apptxt"> |
|
255 |
<xsl:apply-templates select="//t:div[@type='apparatus']/t:listApp"/> |
|
256 |
</xsl:variable> |
|
257 |
<!-- Moded templates found in htm-tpl-sqbrackets.xsl --> |
|
258 |
<xsl:apply-templates select="$apptxt" mode="sqbrackets"/> |
|
259 |
</div> |
|
260 |
<div id="translation" class="iospe"> |
|
261 |
<h4 class="iospe">Translation</h4> |
|
262 |
<!-- Translation text output --> |
|
263 |
<xsl:variable name="transtxt"> |
|
264 |
<xsl:apply-templates select="//t:div[@type='translation']//t:p"/> |
|
265 |
</xsl:variable> |
|
266 |
<!-- Moded templates found in htm-tpl-sqbrackets.xsl --> |
|
267 |
<xsl:apply-templates select="$transtxt" mode="sqbrackets"/> |
|
268 |
</div> |
|
269 |
<div id="commentary" class="iospe"> |
|
270 |
<h4 class="iospe">Commentary</h4> |
|
271 |
<!-- Commentary text output --> |
|
272 |
<xsl:variable name="commtxt"> |
|
273 |
<xsl:apply-templates select="//t:div[@type='commentary']//t:p"/> |
|
274 |
</xsl:variable> |
|
275 |
<!-- Moded templates found in htm-tpl-sqbrackets.xsl --> |
|
276 |
<xsl:apply-templates select="$commtxt" mode="sqbrackets"/> |
|
277 |
</div> |
|
278 |
</div> |
|
279 |
</body> |
|
280 |
</html> |
|
281 |
</xsl:template> |
|
282 |
|
|
283 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/txt-teigap.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: txt-teigap.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 |
version="2.0"> |
|
6 |
<!-- Imported templates can be found in teigap.xsl --> |
|
7 |
<xsl:import href="teigap.xsl"/> |
|
8 |
|
|
9 |
<xsl:template match="t:gap[@reason = 'lost']"> |
|
10 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
11 |
<xsl:if test="@extent='unknown' and @reason='lost' and @unit='line' and ($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch')"> |
|
12 |
<xsl:text> |
|
13 |

</xsl:text> |
|
14 |
</xsl:if> |
|
15 |
<xsl:apply-imports/> |
|
16 |
</xsl:template> |
|
17 |
|
|
18 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/htm-teimilestone.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: htm-teimilestone.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 |
exclude-result-prefixes="t" version="2.0"> |
|
6 |
<!-- More specific templates in teimilestone.xsl --> |
|
7 |
|
|
8 |
<xsl:template match="t:milestone"> |
|
9 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
10 |
<xsl:choose> |
|
11 |
<xsl:when |
|
12 |
test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch') and ancestor::t:div[@type = 'translation']"> |
|
13 |
<xsl:if test="@rend = 'break'"> |
|
14 |
<br/> |
|
15 |
</xsl:if> |
|
16 |
<sup> |
|
17 |
<strong> |
|
18 |
<xsl:value-of select="@n"/> |
|
19 |
</strong> |
|
20 |
</sup> |
|
21 |
<xsl:text> </xsl:text> |
|
22 |
</xsl:when> |
|
23 |
<xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch')"> |
|
24 |
<xsl:choose> |
|
25 |
<xsl:when test="@rend = 'wavy-line'"> |
|
26 |
<xsl:if test="not(parent::t:supplied)"> |
|
27 |
<br/> |
|
28 |
</xsl:if> |
|
29 |
<xsl:text>~~~~~~~~</xsl:text> |
|
30 |
</xsl:when> |
|
31 |
<xsl:when test="@rend = 'paragraphos'"> |
|
32 |
<xsl:if test="not(parent::t:supplied)"> |
|
33 |
<br/> |
|
34 |
</xsl:if> |
|
35 |
<xsl:text>——</xsl:text> |
|
36 |
</xsl:when> |
|
37 |
<xsl:when test="@rend = 'horizontal-rule'"> |
|
38 |
<xsl:if test="not(parent::t:supplied)"> |
|
39 |
<br/> |
|
40 |
</xsl:if> |
|
41 |
<xsl:text>————————</xsl:text> |
|
42 |
</xsl:when> |
|
43 |
</xsl:choose> |
|
44 |
</xsl:when> |
|
45 |
<xsl:otherwise> |
|
46 |
<br/> |
|
47 |
<xsl:value-of select="@rend"/> |
|
48 |
</xsl:otherwise> |
|
49 |
</xsl:choose> |
|
50 |
</xsl:template> |
|
51 |
|
|
52 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/htm-teiaddanddel.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: htm-teiaddanddel.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" exclude-result-prefixes="t" version="2.0"> |
|
5 |
<!-- main templates for subst, add and del found in teiaddanddel.xsl--> |
|
6 |
<xsl:import href="teiaddanddel.xsl"/> |
|
7 |
|
|
8 |
<xsl:template match="t:subst"> |
|
9 |
<xsl:apply-imports/> |
|
10 |
</xsl:template> |
|
11 |
|
|
12 |
|
|
13 |
<xsl:template match="t:add"> |
|
14 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
15 |
<xsl:choose> |
|
16 |
<xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch') and @place='interlinear'"> |
|
17 |
<span style="font-size:smaller;"> |
|
18 |
<xsl:apply-imports/> |
|
19 |
</span> |
|
20 |
</xsl:when> |
|
21 |
<xsl:otherwise> |
|
22 |
<xsl:apply-imports/> |
|
23 |
</xsl:otherwise> |
|
24 |
</xsl:choose> |
|
25 |
</xsl:template> |
|
26 |
|
|
27 |
|
|
28 |
<xsl:template match="t:del"> |
|
29 |
<xsl:apply-imports/> |
|
30 |
</xsl:template> |
|
31 |
|
|
32 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/teig.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: teig.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:EDF="http://epidoc.sourceforge.net/ns/functions" |
|
6 |
exclude-result-prefixes="t EDF" version="2.0"> |
|
7 |
<!-- Templates imported by [htm|txt]-teig.xsl --> |
|
8 |
|
|
9 |
<xsl:function name="EDF:f-wwrap"> |
|
10 |
<!-- called by teisupplied.xsl, teig.xsl and teispace.xsl --> |
|
11 |
<xsl:param name="ww-context"/> |
|
12 |
<xsl:choose> |
|
13 |
<xsl:when test="$ww-context/following-sibling::node()[1][(local-name()='lb' and (@break='no' or @type='inWord')) |
|
14 |
or normalize-space(.)='' and following-sibling::node()[1][local-name()='lb' and (@break='no' or @type='inWord')]]"> |
|
15 |
<xsl:value-of select="true()"/> |
|
16 |
</xsl:when> |
|
17 |
<xsl:otherwise> |
|
18 |
<xsl:value-of select="false()"/> |
|
19 |
</xsl:otherwise> |
|
20 |
</xsl:choose> |
|
21 |
</xsl:function> |
|
22 |
|
|
23 |
<xsl:template name="lb-dash"> |
|
24 |
<!-- function EDF:f-wwrap declared in htm-teilb.xsl; tests if lb break=no immediately follows g --> |
|
25 |
<xsl:if test="EDF:f-wwrap(.) = true()"> |
|
26 |
<xsl:text>- </xsl:text> |
|
27 |
</xsl:if> |
|
28 |
</xsl:template> |
|
29 |
|
|
30 |
<xsl:template name="w-space"> |
|
31 |
<xsl:if test="ancestor::w"> |
|
32 |
<xsl:text> </xsl:text> |
|
33 |
</xsl:if> |
|
34 |
</xsl:template> |
|
35 |
|
|
36 |
<xsl:template match="t:g"> |
|
37 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
38 |
<xsl:if test="not(starts-with($parm-leiden-style, 'edh'))"> |
|
39 |
<xsl:value-of select="@type"/> |
|
40 |
</xsl:if> |
|
41 |
</xsl:template> |
|
42 |
|
|
43 |
<xsl:template match="t:g[@type='descriptive']"> |
|
44 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
45 |
<xsl:if test="not(starts-with($parm-leiden-style, 'edh'))"> |
|
46 |
<xsl:value-of select="."/> |
|
47 |
</xsl:if> |
|
48 |
</xsl:template> |
|
49 |
|
|
50 |
<!-- London specific template --> |
|
51 |
<xsl:template name="g-london"> |
|
52 |
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param> |
|
53 |
<xsl:choose> |
|
54 |
<xsl:when test="@type = 'chirho'"> |
|
55 |
<xsl:text>⳩</xsl:text> |
|
56 |
<xsl:call-template name="g-unclear-symbol"/> |
|
57 |
</xsl:when> |
|
58 |
<xsl:when test="@type = 'taurho'"> |
|
59 |
<xsl:text>⳨</xsl:text> |
|
60 |
<xsl:call-template name="g-unclear-symbol"/> |
|
61 |
</xsl:when> |
|
62 |
<xsl:when test="$parm-edition-type='diplomatic'"> |
|
63 |
<xsl:choose> |
|
64 |
<xsl:when test="@type='crux' or @type='cross'"> |
|
65 |
<xsl:text>†</xsl:text> |
|
66 |
<xsl:call-template name="g-unclear-symbol"/> |
|
67 |
</xsl:when> |
|
68 |
<xsl:when test="@type='crosses'"> |
|
69 |
<xsl:text>††</xsl:text> |
|
70 |
<xsl:call-template name="g-unclear-symbol"/> |
|
71 |
</xsl:when> |
|
72 |
<xsl:when test="@type='denarius'"> |
|
73 |
<xsl:text>𐆖</xsl:text> |
|
74 |
<xsl:call-template name="g-unclear-symbol"/> |
|
75 |
</xsl:when> |
|
76 |
<xsl:when test="@type='drachma'"> |
|
77 |
<xsl:text>𐅵</xsl:text> |
|
78 |
<xsl:call-template name="g-unclear-symbol"/> |
|
79 |
</xsl:when> |
|
80 |
<xsl:when test="@type='sestercius'"> |
|
81 |
<xsl:text>𐆘</xsl:text> |
|
82 |
<xsl:call-template name="g-unclear-symbol"/> |
|
83 |
</xsl:when> |
|
84 |
<xsl:when test="@type='year'"> |
|
85 |
<xsl:text>L</xsl:text> |
|
86 |
<xsl:call-template name="g-unclear-symbol"/> |
|
87 |
</xsl:when> |
|
88 |
<xsl:when test="@type='stop'"> |
|
89 |
<xsl:text>•</xsl:text> |
|
90 |
<xsl:call-template name="g-unclear-symbol"/> |
|
91 |
</xsl:when> |
|
92 |
<xsl:otherwise> |
|
93 |
<span class="smaller" style="font-style:italic;"> |
|
94 |
<xsl:text> </xsl:text> |
|
95 |
<xsl:value-of select="@type"/> |
|
96 |
<xsl:call-template name="g-unclear-symbol"/> |
|
97 |
<xsl:text> </xsl:text> |
|
98 |
</span> |
|
99 |
</xsl:otherwise> |
|
100 |
</xsl:choose> |
|
101 |
</xsl:when> |
|
102 |
<xsl:otherwise> |
|
103 |
<span class="smaller" style="font-style:italic;"> |
|
104 |
<xsl:text> </xsl:text> |
|
105 |
<xsl:value-of select="@type"/> |
|
106 |
<xsl:call-template name="g-unclear-string"/> |
|
107 |
<xsl:text> </xsl:text> |
|
108 |
</span> |
|
109 |
</xsl:otherwise> |
|
110 |
</xsl:choose> |
|
111 |
</xsl:template> |
|
112 |
|
|
113 |
<!-- IOSPE specific template --> |
|
114 |
<!-- called from htm-teig.xml --> |
|
115 |
<xsl:template name="g-iospe"> |
|
116 |
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param> |
|
117 |
<xsl:choose> |
|
118 |
<xsl:when test="@type = 'stauros'"> |
|
119 |
<xsl:text>+</xsl:text> |
|
120 |
<xsl:call-template name="g-unclear-symbol"/> |
|
121 |
</xsl:when> |
|
122 |
<xsl:when test="@type = 'staurogram'"> |
|
123 |
<xsl:text>⳨</xsl:text> |
|
124 |
<xsl:call-template name="g-unclear-symbol"/> |
|
125 |
</xsl:when> |
|
126 |
<xsl:when test="@type = 'leaf'"> |
|
127 |
<xsl:text>❦</xsl:text> |
|
128 |
<xsl:call-template name="g-unclear-symbol"/> |
|
129 |
</xsl:when> |
|
130 |
<xsl:when test="@type = 'dipunct'"> |
|
131 |
<xsl:text>:</xsl:text> |
|
132 |
<xsl:call-template name="g-unclear-symbol"/> |
|
133 |
</xsl:when> |
|
134 |
<xsl:when test="$parm-edition-type='diplomatic'"> |
|
135 |
<xsl:choose> |
|
136 |
<!--<xsl:when test="@type='denarius'"> |
|
137 |
<xsl:text>𐆖</xsl:text> |
|
138 |
<xsl:call-template name="g-unclear-symbol"/> |
|
139 |
</xsl:when> |
|
140 |
<xsl:when test="@type='sestercius'"> |
|
141 |
<xsl:text>𐆘</xsl:text> |
|
142 |
<xsl:call-template name="g-unclear-symbol"/> |
|
143 |
</xsl:when>--> |
|
144 |
<xsl:when test="@type='year'"> |
|
145 |
<xsl:text>L</xsl:text> |
|
146 |
<xsl:call-template name="g-unclear-symbol"/> |
|
147 |
</xsl:when> |
|
148 |
<xsl:when test="@type='stop'"> |
|
149 |
<xsl:text>•</xsl:text> |
|
150 |
<xsl:call-template name="g-unclear-symbol"/> |
|
151 |
</xsl:when> |
|
152 |
<xsl:otherwise> |
|
153 |
<span class="smaller" style="font-style:italic;"> |
|
154 |
<xsl:text> </xsl:text> |
|
155 |
<xsl:value-of select="@type"/> |
|
156 |
<xsl:call-template name="g-unclear-string"/> |
|
157 |
<xsl:text> </xsl:text> |
|
158 |
</span> |
|
159 |
</xsl:otherwise> |
|
160 |
</xsl:choose> |
|
161 |
</xsl:when> |
|
162 |
<xsl:otherwise> |
|
163 |
<span class="smaller" style="font-style:italic;"> |
|
164 |
<xsl:text> </xsl:text> |
|
165 |
<xsl:value-of select="@type"/> |
|
166 |
<xsl:call-template name="g-unclear-string"/> |
|
167 |
<xsl:text> </xsl:text> |
|
168 |
</span> |
|
169 |
</xsl:otherwise> |
|
170 |
</xsl:choose> |
|
171 |
|
|
172 |
</xsl:template> |
|
173 |
|
|
174 |
<!-- ddb specific template --> |
|
175 |
<xsl:template name="g-ddbdp"> |
|
176 |
<xsl:choose> |
|
177 |
<xsl:when test="@type='apostrophe'"> |
|
178 |
<xsl:text>’</xsl:text> |
|
179 |
<xsl:call-template name="g-unclear-symbol"/> |
|
180 |
</xsl:when> |
|
181 |
<xsl:when test="@type='check' or @type='check-mark'"> |
|
182 |
<xsl:text>/</xsl:text> |
|
183 |
<xsl:call-template name="g-unclear-symbol"/> |
|
184 |
</xsl:when> |
|
185 |
<xsl:when test="@type='chirho'"> |
|
186 |
<xsl:text>☧</xsl:text> |
|
187 |
<xsl:call-template name="g-unclear-symbol"/> |
|
188 |
</xsl:when> |
|
189 |
<xsl:when test="@type='dash'"> |
|
190 |
<xsl:text>—</xsl:text> |
|
191 |
<xsl:call-template name="g-unclear-symbol"/> |
|
192 |
</xsl:when> |
|
193 |
<xsl:when test="@type='dipunct'"> |
|
194 |
<xsl:text>∶</xsl:text> |
|
195 |
<xsl:call-template name="g-unclear-symbol"/> |
|
196 |
</xsl:when> |
|
197 |
<xsl:when test="@type='filled-circle'"> |
|
198 |
<xsl:text>⦿</xsl:text> |
|
199 |
<xsl:call-template name="g-unclear-symbol"/> |
|
200 |
</xsl:when> |
|
201 |
<xsl:when test="@type='filler' and @rend='extension'"> |
|
202 |
<xsl:text>―</xsl:text> |
|
203 |
<xsl:call-template name="g-unclear-string"/> |
|
204 |
</xsl:when> |
|
205 |
<xsl:when test="@type='latin-interpunct' or @type='middot' or @type='mid-punctus'"> |
|
206 |
<xsl:text>·</xsl:text> |
|
207 |
<xsl:call-template name="g-unclear-symbol"/> |
|
208 |
</xsl:when> |
|
209 |
<xsl:when test="@type='monogram'"> |
|
210 |
<span class="italic"> |
|
211 |
<xsl:text>monogr.</xsl:text> |
|
212 |
<xsl:call-template name="g-unclear-symbol"/> |
|
213 |
</span> |
|
214 |
</xsl:when> |
|
215 |
<xsl:when test="@type='upper-brace-opening'"> |
|
216 |
<xsl:text>⎧</xsl:text> |
|
217 |
<xsl:call-template name="g-unclear-symbol"/> |
|
218 |
</xsl:when> |
|
219 |
<xsl:when test="@type='center-brace-opening'"> |
|
220 |
<xsl:text>⎨</xsl:text> |
|
221 |
<xsl:call-template name="g-unclear-symbol"/> |
|
222 |
</xsl:when> |
|
223 |
<xsl:when test="@type='lower-brace-opening'"> |
|
224 |
<xsl:text>⎩</xsl:text> |
|
225 |
<xsl:call-template name="g-unclear-symbol"/> |
|
226 |
</xsl:when> |
|
227 |
<xsl:when test="@type='upper-brace-closing'"> |
|
228 |
<xsl:text>⎫</xsl:text> |
|
229 |
<xsl:call-template name="g-unclear-symbol"/> |
|
230 |
</xsl:when> |
|
231 |
<xsl:when test="@type='center-brace-closing'"> |
|
232 |
<xsl:text>⎬</xsl:text> |
|
233 |
<xsl:call-template name="g-unclear-symbol"/> |
|
234 |
</xsl:when> |
|
235 |
<xsl:when test="@type='lower-brace-closing'"> |
|
236 |
<xsl:text>⎭</xsl:text> |
|
237 |
<xsl:call-template name="g-unclear-symbol"/> |
|
238 |
</xsl:when> |
|
239 |
<xsl:when test="@type='parens-upper-opening'"> |
|
240 |
<xsl:text>⎛</xsl:text> |
|
241 |
<xsl:call-template name="g-unclear-symbol"/> |
|
242 |
</xsl:when> |
|
243 |
<xsl:when test="@type='parens-middle-opening'"> |
|
244 |
<xsl:text>⎜</xsl:text> |
|
245 |
<xsl:call-template name="g-unclear-symbol"/> |
|
246 |
</xsl:when> |
|
247 |
<xsl:when test="@type='parens-lower-opening'"> |
|
248 |
<xsl:text>⎝</xsl:text> |
|
249 |
<xsl:call-template name="g-unclear-symbol"/> |
|
250 |
</xsl:when> |
|
251 |
<xsl:when test="@type='parens-upper-closing'"> |
|
252 |
<xsl:text>⎞</xsl:text> |
|
253 |
<xsl:call-template name="g-unclear-symbol"/> |
|
254 |
</xsl:when> |
|
255 |
<xsl:when test="@type='parens-middle-closing'"> |
|
256 |
<xsl:text>⎟</xsl:text> |
|
257 |
<xsl:call-template name="g-unclear-symbol"/> |
|
258 |
</xsl:when> |
|
259 |
<xsl:when test="@type='parens-lower-closing'"> |
|
260 |
<xsl:text>⎠</xsl:text> |
|
261 |
<xsl:call-template name="g-unclear-symbol"/> |
|
262 |
</xsl:when> |
|
263 |
<xsl:when test="@type = 'rho-cross'"> |
|
264 |
<xsl:text>⳨</xsl:text> |
|
265 |
<xsl:call-template name="g-unclear-symbol"/> |
|
266 |
</xsl:when> |
|
267 |
<xsl:when test="@type='slanting-stroke'"> |
|
268 |
<xsl:text>/</xsl:text> |
|
269 |
<xsl:call-template name="g-unclear-symbol"/> |
|
270 |
</xsl:when> |
|
271 |
<xsl:when test="@type='stauros'"> |
|
272 |
<xsl:text>†</xsl:text> |
|
273 |
<xsl:call-template name="g-unclear-symbol"/> |
|
274 |
</xsl:when> |
|
275 |
<xsl:when test="@type='tachygraphic marks'"> |
|
276 |
<span class="italic"> |
|
277 |
<xsl:text>tachygr. marks</xsl:text> |
|
278 |
<xsl:call-template name="g-unclear-symbol"/> |
|
279 |
</span> |
|
280 |
</xsl:when> |
|
281 |
<xsl:when test="@type='tripunct'"> |
|
282 |
<xsl:text>⋮</xsl:text> |
|
283 |
<xsl:call-template name="g-unclear-symbol"/> |
|
284 |
</xsl:when> |
|
285 |
<xsl:when test="@type='double-vertical-bar'"> |
|
286 |
<xsl:text>‖</xsl:text> |
|
287 |
<xsl:call-template name="g-unclear-symbol"/> |
|
288 |
</xsl:when> |
|
289 |
<xsl:when test="@type='long-vertical-bar'"> |
|
290 |
<xsl:text>|</xsl:text> |
|
291 |
<xsl:call-template name="g-unclear-symbol"/> |
|
292 |
</xsl:when> |
|
293 |
<xsl:when test="@type='x'"> |
|
294 |
<xsl:text>☓</xsl:text> |
|
295 |
<xsl:call-template name="g-unclear-symbol"/> |
|
296 |
</xsl:when> |
|
297 |
<xsl:when test="@type='xs'"> |
|
298 |
<xsl:text>☓</xsl:text> |
|
299 |
<xsl:call-template name="g-unclear-symbol"/> |
|
300 |
<xsl:text>☓</xsl:text> |
|
301 |
<xsl:call-template name="g-unclear-symbol"/> |
|
302 |
<xsl:text>☓</xsl:text> |
|
303 |
<xsl:call-template name="g-unclear-symbol"/> |
|
304 |
<xsl:text>☓</xsl:text> |
|
305 |
<xsl:call-template name="g-unclear-symbol"/> |
|
306 |
<xsl:text>☓</xsl:text> |
|
307 |
<xsl:call-template name="g-unclear-symbol"/> |
|
308 |
</xsl:when> |
|
309 |
<!-- Interim error reporting --> |
|
310 |
<xsl:otherwise> |
|
311 |
<text> ((</text> |
|
312 |
<xsl:value-of select="@type"/> |
|
313 |
<xsl:call-template name="g-unclear-string"/> |
|
314 |
<text>)) </text> |
|
315 |
</xsl:otherwise> |
|
316 |
</xsl:choose> |
|
317 |
</xsl:template> |
|
318 |
|
|
319 |
<!-- RIB specific template --> |
|
320 |
<xsl:template name="g-rib"> |
|
321 |
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param> |
|
322 |
<xsl:choose> |
|
323 |
<xsl:when test="@type = 'chirho'"> |
|
324 |
<xsl:text>☧</xsl:text> |
|
325 |
<xsl:call-template name="g-unclear-symbol"/> |
|
326 |
</xsl:when> |
|
327 |
<xsl:when test="@type='century'"> |
|
328 |
<xsl:text>𐆛</xsl:text> |
|
329 |
<xsl:call-template name="g-unclear-symbol"/> |
|
330 |
</xsl:when> |
|
331 |
<xsl:when test="@type='milliaria'"> |
|
332 |
<xsl:text>ↀ</xsl:text> |
|
333 |
<xsl:call-template name="g-unclear-symbol"/> |
|
334 |
</xsl:when> |
|
335 |
<xsl:when test="@type='leaf'"> |
|
336 |
<xsl:text>❦</xsl:text> |
|
337 |
<xsl:call-template name="g-unclear-symbol"/> |
|
338 |
</xsl:when> |
|
339 |
<xsl:when test="@type='palm'"> |
|
340 |
<xsl:text>††</xsl:text> |
|
341 |
<xsl:call-template name="g-unclear-symbol"/> |
|
342 |
</xsl:when> |
|
343 |
<xsl:when test="@type='star'"> |
|
344 |
<xsl:text>*</xsl:text> |
|
345 |
<xsl:call-template name="g-unclear-symbol"/> |
|
346 |
</xsl:when> |
|
347 |
<xsl:when test="@type='interpunct' and not(node())"> |
|
348 |
<xsl:text>·</xsl:text> |
|
349 |
<xsl:call-template name="g-unclear-symbol"/> |
|
350 |
</xsl:when> |
|
351 |
<xsl:when test="@type='interpunct' and node()"> |
|
352 |
<xsl:apply-templates/> |
|
353 |
<xsl:call-template name="g-unclear-symbol"/> |
|
354 |
</xsl:when> |
|
355 |
<xsl:when test="@type='sestertius' and not(node())"> |
|
356 |
<xsl:text>𐆘</xsl:text> |
|
357 |
<xsl:call-template name="g-unclear-symbol"/> |
|
358 |
</xsl:when> |
|
359 |
<xsl:when test="@type='sestertius' and node()"> |
|
360 |
<xsl:apply-templates/> |
|
361 |
<xsl:call-template name="g-unclear-symbol"/> |
|
362 |
</xsl:when> |
|
363 |
<xsl:when test="@type='denarius'"> |
|
364 |
<xsl:text>⸙</xsl:text> |
|
365 |
<xsl:call-template name="g-unclear-symbol"/> |
|
366 |
</xsl:when> |
|
367 |
<xsl:when test="@type='barless-A'"> |
|
368 |
<xsl:text>Λ</xsl:text> |
|
369 |
<xsl:call-template name="g-unclear-symbol"/> |
|
370 |
</xsl:when> |
|
371 |
<xsl:when test="@type='dot'"> |
|
372 |
<xsl:text>.</xsl:text> |
|
373 |
<xsl:call-template name="g-unclear-symbol"/> |
|
374 |
</xsl:when> |
|
375 |
<xsl:when test="@type='stop'"> |
|
376 |
<xsl:text>•</xsl:text> |
|
377 |
<xsl:call-template name="g-unclear-symbol"/> |
|
378 |
</xsl:when> |
|
379 |
<xsl:when test="@type='crux' or @type='cross'"> |
|
380 |
<xsl:text>†</xsl:text> |
|
381 |
<xsl:call-template name="g-unclear-symbol"/> |
|
382 |
</xsl:when> |
|
383 |
<xsl:otherwise> |
|
384 |
<span class="smaller" style="font-style:italic;"> |
|
385 |
<xsl:text> </xsl:text> |
|
386 |
<xsl:value-of select="@type"/> |
|
387 |
<xsl:call-template name="g-unclear-string"/> |
|
388 |
<xsl:text> </xsl:text> |
|
389 |
</span> |
|
390 |
</xsl:otherwise> |
|
391 |
</xsl:choose> |
|
392 |
</xsl:template> |
|
393 |
|
|
394 |
<xsl:template name="g-unclear-symbol"> |
|
395 |
<!-- adds underdot below symbol if parent:unclear --> |
|
396 |
<xsl:if test="parent::t:unclear"> |
|
397 |
<xsl:text>̣</xsl:text> |
|
398 |
</xsl:if> |
|
399 |
</xsl:template> |
|
400 |
|
|
401 |
<xsl:template name="g-unclear-string"> |
|
402 |
<!-- adds question mark after string if parent:unclear --> |
|
403 |
<xsl:if test="parent::t:unclear"> |
|
404 |
<xsl:text>?</xsl:text> |
|
405 |
</xsl:if> |
|
406 |
</xsl:template> |
|
407 |
|
|
408 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/teiheader.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: teiheader.xsl 1725 2012-01-10 16:08:31Z gabrielbodard $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="t" |
|
5 |
version="2.0"> |
|
6 |
|
|
7 |
<xsl:template match="t:teiHeader|t:facsimile"/> |
|
8 |
|
|
9 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/txt-tpl-linenumberingtab.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: txt-tpl-linenumberingtab.xsl 1543 2011-08-31 15:47:37Z ryanfb $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> |
|
4 |
|
|
5 |
<xsl:template name="line-numbering-tab"> |
|
6 |
<xsl:text>		</xsl:text> |
|
7 |
</xsl:template> |
|
8 |
|
|
9 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/txt-teilistbiblandbibl.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: txt-teilistbiblandbibl.xsl 1543 2011-08-31 15:47:37Z ryanfb $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" |
|
5 |
version="2.0"> |
|
6 |
<!-- Need to find unicode for bullets, indenting --> |
|
7 |
|
|
8 |
<xsl:template match="t:listBibl"> |
|
9 |
<xsl:apply-templates/> |
|
10 |
</xsl:template> |
|
11 |
|
|
12 |
|
|
13 |
<xsl:template match="t:bibl"> |
|
14 |
<xsl:text> |
|
15 |

</xsl:text> |
|
16 |
<xsl:apply-templates/> |
|
17 |
</xsl:template> |
|
18 |
|
|
19 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/teinum.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: teinum.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" exclude-result-prefixes="t" |
|
5 |
version="2.0"> |
|
6 |
<!-- latinnum span added in htm-teinum.xsl --> |
|
7 |
|
|
8 |
<xsl:template match="t:num"> |
|
9 |
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param> |
|
10 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
11 |
<xsl:choose> |
|
12 |
<xsl:when test="not(child::t:* or child::text())"/> |
|
13 |
<xsl:when test="$parm-leiden-style = ('ddbdp','sammelbuch')"> |
|
14 |
<xsl:apply-templates/> |
|
15 |
<xsl:if test="@rend='tick'"> |
|
16 |
<xsl:text>´</xsl:text> |
|
17 |
</xsl:if> |
|
18 |
</xsl:when> |
|
19 |
<xsl:when test="$parm-edition-type='interpretive' and ancestor::t:*[@xml:lang][1][@xml:lang = 'grc'] |
|
20 |
and ((number(@value) and not(contains(@value,'/'))) |
|
21 |
or (number(@atLeast) and not(contains(@atLeast,'/'))) |
|
22 |
or (number(@atMost) and not(contains(@atMost,'/'))))"> |
|
23 |
<xsl:if test="@value >= 1000 or @atLeast >= 1000 or @atMost >= 1000"> |
|
24 |
<xsl:text>͵</xsl:text> |
|
25 |
</xsl:if> |
|
26 |
<xsl:apply-templates/> |
|
27 |
<xsl:if test="@value mod 1000 != 0 |
|
28 |
or @atLeast mod 1000 != 0 |
|
29 |
or @atMost mod 1000 != 0"> |
|
30 |
<xsl:text>´</xsl:text> |
|
31 |
</xsl:if> |
|
32 |
</xsl:when> |
|
33 |
<xsl:otherwise> |
|
34 |
<xsl:apply-templates/> |
|
35 |
</xsl:otherwise> |
|
36 |
</xsl:choose> |
|
37 |
</xsl:template> |
|
38 |
|
|
39 |
|
|
40 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/teiq.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: teiq.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" exclude-result-prefixes="t" |
|
5 |
version="2.0"> |
|
6 |
|
|
7 |
<xsl:template match="t:q"> |
|
8 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
9 |
<xsl:param name="parm-edn-structure" tunnel="yes" required="no"></xsl:param> |
|
10 |
<xsl:choose> |
|
11 |
<xsl:when test="($parm-edn-structure = 'rib')"> |
|
12 |
<xsl:text>‘</xsl:text><xsl:apply-templates/><xsl:text>’</xsl:text> |
|
13 |
</xsl:when> |
|
14 |
<xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch')"> |
|
15 |
<xsl:text>'</xsl:text> |
|
16 |
<xsl:apply-templates/> |
|
17 |
<xsl:text>'</xsl:text> |
|
18 |
</xsl:when> |
|
19 |
<xsl:otherwise> |
|
20 |
<xsl:apply-templates/> |
|
21 |
</xsl:otherwise> |
|
22 |
</xsl:choose> |
|
23 |
</xsl:template> |
|
24 |
|
|
25 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/teiorig.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: teiorig.xsl 1725 2012-01-10 16:08:31Z gabrielbodard $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="t" |
|
5 |
version="2.0"> |
|
6 |
|
|
7 |
<xsl:template match="t:orig[not(parent::t:choice)]//text()" priority="1"> |
|
8 |
<xsl:value-of select="translate(., $all-grc, $grc-upper-strip)"/> |
|
9 |
</xsl:template> |
|
10 |
|
|
11 |
|
|
12 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/htm-teiref.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: htm-teiref.xsl 1725 2012-01-10 16:08:31Z gabrielbodard $ --> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
xmlns:t="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="t" |
|
5 |
version="2.0"> |
|
6 |
<xsl:include href="teiref.xsl"/> |
|
7 |
|
|
8 |
<xsl:template match="t:ref"> |
|
9 |
<xsl:choose> |
|
10 |
<xsl:when test="@type = 'reprint-from'"> |
|
11 |
<br/> |
|
12 |
<!-- Found in teiref.xsl --> |
|
13 |
<xsl:call-template name="reprint-text"> |
|
14 |
<xsl:with-param name="direction" select="'from'"/> |
|
15 |
</xsl:call-template> |
|
16 |
</xsl:when> |
|
17 |
<xsl:when test="@type = 'reprint-in'"> |
|
18 |
<br/> |
|
19 |
<!-- Found in teiref.xsl --> |
|
20 |
<xsl:call-template name="reprint-text"> |
|
21 |
<xsl:with-param name="direction" select="'in'"/> |
|
22 |
</xsl:call-template> |
|
23 |
</xsl:when> |
|
24 |
<xsl:when test="@type = 'Perseus'"> |
|
25 |
<xsl:variable name="col" select="substring-before(@href, ';')"/> |
|
26 |
<xsl:variable name="vol" select="substring-before(substring-after(@href,';'),';')"/> |
|
27 |
<xsl:variable name="no" select="substring-after(substring-after(@href,';'),';')"/> |
|
28 |
<a href="http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.05.{$col}:volume={$vol}:document={$no}"> |
|
29 |
<xsl:apply-templates/> |
|
30 |
</a> |
|
31 |
</xsl:when> |
|
32 |
<xsl:otherwise> |
|
33 |
<xsl:apply-templates/> |
|
34 |
</xsl:otherwise> |
|
35 |
</xsl:choose> |
|
36 |
</xsl:template> |
|
37 |
|
|
38 |
|
|
39 |
<xsl:template name="link-text"> |
|
40 |
<xsl:param name="href-link"/> |
|
41 |
<xsl:param name="val-doc"/> |
|
42 |
|
|
43 |
<a href="{$href-link}"> |
|
44 |
<xsl:value-of select="$val-doc"/> |
|
45 |
</a> |
|
46 |
</xsl:template> |
|
47 |
|
|
48 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/txt-teig.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!-- $Id: txt-teig.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 |
version="2.0"> |
|
6 |
|
|
7 |
<!-- Import templates can be found in teig.xsl --> |
|
8 |
<xsl:import href="teig.xsl"/> |
|
9 |
|
|
10 |
<xsl:template match="t:g"> |
|
11 |
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param> |
|
12 |
<xsl:call-template name="lb-dash"/> |
|
13 |
<xsl:call-template name="w-space"/> |
|
14 |
|
|
15 |
<xsl:choose> |
|
16 |
<xsl:when test="starts-with($parm-leiden-style, 'edh')"/> |
|
17 |
<xsl:when test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch')"> |
|
18 |
<xsl:call-template name="g-ddbdp"/> |
|
19 |
</xsl:when> |
|
20 |
<xsl:when test="$parm-leiden-style = 'dohnicht'"> |
|
21 |
<xsl:text>⊂</xsl:text> |
|
22 |
<xsl:apply-imports/> |
|
23 |
<xsl:text>⊃</xsl:text> |
|
24 |
</xsl:when> |
|
25 |
<xsl:otherwise> |
|
26 |
<xsl:text>((</xsl:text> |
|
27 |
<xsl:apply-imports/> |
|
28 |
<xsl:text>))</xsl:text> |
|
29 |
</xsl:otherwise> |
|
30 |
</xsl:choose> |
|
31 |
|
|
32 |
<!-- Found in teig.xsl --> |
|
33 |
<xsl:call-template name="w-space"/> |
|
34 |
</xsl:template> |
|
35 |
|
|
36 |
</xsl:stylesheet> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/xslt/edition/README.txt | ||
---|---|---|
1 |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
|
2 |
XXX README.txt for example-p5-xslt XXX |
|
3 |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
|
4 |
|
|
5 |
What it is: |
|
6 |
|
|
7 |
XSLT for transformation of EpiDoc XML files into HTML or text |
|
8 |
versions in Leiden. Includes various XML files containing parameters |
|
9 |
and other options. |
|
10 |
|
|
11 |
To cite these stylesheets in a conventional bibliography, please |
|
12 |
include the following information: |
|
13 |
|
|
14 |
Tom Elliott, Zaneta Au, Gabriel Bodard, Hugh Cayless, Carmen Lanz, |
|
15 |
Faith Lawrence, Scott Vandebilt, Raffaele Viglianti, et al. (2008-2013), |
|
16 |
EpiDoc Example Stylesheets (version 8). Available: |
|
17 |
<https://sourceforge.net/p/epidoc/wiki/Stylesheets/> |
|
18 |
|
|
19 |
License: |
Also available in: Unified diff
moved edition XSLT to file system