Skip to content

Commit 2f82f26

Browse files
Correcting header levels
1 parent 30d63c4 commit 2f82f26

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

stylesheets/bibl.xsl

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
21
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xpath-default-namespace="http://www.tei-c.org/ns/1.0">
32
<xsl:output method="xhtml" indent="yes" encoding="utf-8"/>
43

54
<xsl:template match="/">
65
<xsl:choose>
76
<xsl:when test="starts-with(//biblStruct//idno[1], 'https://books.google.se/books?id=')">
8-
<h2 id="{data(//biblStruct//idno[1])}" class="page-header">
7+
<h1 id="{data(//biblStruct//idno[1])}" class="page-header">
98
<xsl:value-of select="//titleStmt/title"/>
10-
</h2>
9+
</h1>
1110
</xsl:when>
1211
<xsl:when test="starts-with(//biblStruct//idno[1], 'https://archive.org/details/')">
13-
<h2 id="{data(//biblStruct//idno[1])}" class="page-header">
12+
<h1 id="{data(//biblStruct//idno[1])}" class="page-header">
1413
<xsl:value-of select="//titleStmt/title"/>
15-
</h2>
14+
</h1>
1615
</xsl:when>
1716
<xsl:otherwise>
18-
<h2 class="page-header">
17+
<h1 class="page-header">
1918
<xsl:value-of select="//titleStmt/title"/>
20-
</h2>
19+
</h1>
2120
</xsl:otherwise>
2221
</xsl:choose>
2322
<xsl:apply-templates select="//author"/>

stylesheets/organizations.xsl

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
21
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xpath-default-namespace="http://www.tei-c.org/ns/1.0">
32
<xsl:output method="xhtml" indent="yes" encoding="utf-8"/>
43

@@ -59,9 +58,9 @@
5958
</xsl:choose>
6059
</xsl:template>
6160
<xsl:template match="title">
62-
<h2 class="page-header">
61+
<h1 class="page-header">
6362
<xsl:value-of select="//titleStmt/title"/>
64-
</h2>
63+
</h1>
6564
</xsl:template>
6665

6766
<xsl:template name="footer">

stylesheets/persons.xsl

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
21
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xpath-default-namespace="http://www.tei-c.org/ns/1.0">
32
<xsl:output method="xhtml" indent="yes" encoding="utf-8"/>
43
<xsl:template match="/">
@@ -111,9 +110,9 @@
111110
</xsl:template>
112111

113112
<xsl:template match="title">
114-
<h2 class="page-header">
113+
<h1 class="page-header">
115114
<xsl:value-of select="//titleStmt/title"/>
116-
</h2>
115+
</h1>
117116
</xsl:template>
118117

119118
<xsl:template name="footer">
@@ -161,4 +160,4 @@
161160

162161
<xsl:template match="sponsor"/>
163162

164-
</xsl:stylesheet>
163+
</xsl:stylesheet>

stylesheets/places.xsl

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
21
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xpath-default-namespace="http://www.tei-c.org/ns/1.0">
32
<xsl:output method="xhtml" indent="yes" encoding="utf-8"/>
43
<xsl:template match="/">
@@ -51,9 +50,9 @@
5150
</xsl:template>
5251

5352
<xsl:template match="title">
54-
<h2 class="page-header">
53+
<h1 class="page-header">
5554
<xsl:value-of select="//titleStmt/title"/>
56-
</h2>
55+
</h1>
5756
</xsl:template>
5857

5958
<xsl:template name="footer">

stylesheets/works.xsl

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
21
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xpath-default-namespace="http://www.tei-c.org/ns/1.0">
32
<xsl:output method="xhtml" indent="yes" encoding="utf-8"/>
43

@@ -8,9 +7,9 @@
87
</xsl:template>
98

109
<xsl:template match="//titleStmt/title">
11-
<h2 class="page-header">
10+
<h1 class="page-header">
1211
<xsl:value-of select="."/>
13-
</h2>
12+
</h1>
1413
</xsl:template>
1514

1615
<xsl:template match="//bibl/title">

0 commit comments

Comments
 (0)