1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<!-- $Id: htm-tpl-struct-hgv.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"
|
5
|
version="2.0">
|
6
|
<!-- Contains named templates for HGV file structure (aka "metadata" aka "supporting data") -->
|
7
|
|
8
|
<!-- Called from htm-tpl-structure.xsl -->
|
9
|
|
10
|
<xsl:template name="hgv-structure">
|
11
|
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
|
12
|
<html>
|
13
|
<head>
|
14
|
<title>
|
15
|
<xsl:choose>
|
16
|
<xsl:when test="//t:sourceDesc//t:bibl/text()">
|
17
|
<xsl:value-of select="//t:sourceDesc//t:bibl"/>
|
18
|
</xsl:when>
|
19
|
<xsl:when test="//t:idno[@type='filename']/text()">
|
20
|
<xsl:value-of select="//t:idno[@type='filename']"/>
|
21
|
</xsl:when>
|
22
|
<xsl:otherwise>
|
23
|
<xsl:text></xsl:text>
|
24
|
</xsl:otherwise>
|
25
|
</xsl:choose>
|
26
|
</title>
|
27
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
28
|
<!-- Found in htm-tpl-cssandscripts.xsl -->
|
29
|
<xsl:call-template name="css-script"/>
|
30
|
</head>
|
31
|
<body>
|
32
|
|
33
|
<!-- Heading for a ddb style file -->
|
34
|
<xsl:if test="($parm-leiden-style = 'ddbdp' or $parm-leiden-style = 'sammelbuch')">
|
35
|
<h1>
|
36
|
<xsl:choose>
|
37
|
<xsl:when test="//t:sourceDesc//t:bibl/text()">
|
38
|
<xsl:value-of select="//t:sourceDesc//t:bibl"/>
|
39
|
</xsl:when>
|
40
|
<xsl:otherwise>
|
41
|
<xsl:value-of select="//t:idno[@type='filename']"/>
|
42
|
</xsl:otherwise>
|
43
|
</xsl:choose>
|
44
|
</h1>
|
45
|
</xsl:if>
|
46
|
|
47
|
<!-- Main text output -->
|
48
|
<xsl:apply-templates select="//div[@type='edition']"/>
|
49
|
|
50
|
<!-- Found in htm-tpl-license.xsl -->
|
51
|
<xsl:call-template name="license"/>
|
52
|
|
53
|
</body>
|
54
|
</html>
|
55
|
</xsl:template>
|
56
|
|
57
|
</xsl:stylesheet>
|