WME/aufgabe2/resources/world_data_sheet.xslt

128 lines
7.3 KiB
HTML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
2018-11-13 21:33:33 +00:00
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
2018-11-13 21:33:33 +00:00
<head>
<meta charset="utf-8"></meta>
<title>Page Title</title>
<meta name="description" content="Die Daten der Welt im Überblick"></meta>
<meta name="author" content="Michael Hübener und Selina Marie-Alice Schönherr"></meta>
<meta name="keywords" content="Welt, Daten, Überblick, HTML"></meta>
<meta name="viewport" content="width=device-width, initial-scale=1"></meta>
<link rel="stylesheet" type="text/css" media="screen" href="css/reset.css"></link>
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css"></link>
<script src="js/table.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet"></link>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.2/css/all.css"
integrity="sha384-/rXc/GQVaYpyDdyxK+ecHPVYJSN9bmVFBvjA/9eOB+pb3F2w2N6fc5qB9Ew5yIns"
crossorigin="anonymous"></link>
</head>
<body>
<h1>World Data Overview ...</h1>
2018-11-13 21:33:33 +00:00
<div class="table-wrapper">
2018-11-14 21:15:00 +00:00
<table id="t02" class="world_table">
2018-11-14 09:11:40 +00:00
<thead>
2018-11-13 21:33:33 +00:00
<tr>
2018-11-14 09:11:40 +00:00
<th onclick="sortTable(0)">
2018-11-15 15:53:57 +00:00
id
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-15 15:53:57 +00:00
<i class="fas fa-chevron-down"></i>
2018-11-14 09:11:40 +00:00
</th>
<th onclick="sortTable(1)">
2018-11-15 15:53:57 +00:00
name
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-15 15:53:57 +00:00
<i class="fas fa-chevron-down"></i>
2018-11-14 09:11:40 +00:00
</th>
<th onclick="sortTable(2)">
2018-11-14 14:49:36 +00:00
birth rate / 1000
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(3)">
2018-11-14 14:49:36 +00:00
cell phones / 100
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(4)">
2018-11-14 14:49:36 +00:00
children / woman
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(5)">
2018-11-14 14:49:36 +00:00
electricity consumption / capita
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(6)">
2018-11-14 14:49:36 +00:00
gdp / capita
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
2018-11-15 15:53:57 +00:00
<!--
2018-11-14 09:11:40 +00:00
<th onclick="sortTable(7)">
2018-11-14 14:49:36 +00:00
gdp / capita growth
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(8)">
inflation_annual
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(9)">
2018-11-14 14:49:36 +00:00
internet user / 100
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(10)">
2018-11-14 14:49:36 +00:00
life expectancy
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(11)">
2018-11-14 14:49:36 +00:00
military expenditure percent of gdp
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(12)">
2018-11-14 14:49:36 +00:00
gps lat
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
<th onclick="sortTable(13)">
2018-11-14 14:49:36 +00:00
gps long
2018-11-14 21:15:00 +00:00
<i class="fas fa-chevron-up"></i>
2018-11-14 09:11:40 +00:00
<i class="fas fa-chevron-down"></i>
</th>
2018-11-15 15:53:57 +00:00
-->
2018-11-13 21:33:33 +00:00
</tr>
2018-11-14 14:49:36 +00:00
</thead>
2018-11-14 09:11:40 +00:00
<tbody>
<xsl:for-each select="Countries/Country">
<tr>
<td><xsl:value-of select="id"/></td>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="birth_rate_per_1000"/></td>
<td><xsl:value-of select="cell_phones_per_100"/></td>
<td><xsl:value-of select="children_per_woman"/></td>
<td><xsl:value-of select="electricity_consumption_per_capita"/></td>
<td><xsl:value-of select="gdp_per_capita"/></td>
2018-11-15 15:53:57 +00:00
<!--
2018-11-14 09:11:40 +00:00
<td><xsl:value-of select="gdp__per__capita__growth"/></td>
<td><xsl:value-of select="inflation_annual"/></td>
<td><xsl:value-of select="internet_user_per_100"/></td>
<td><xsl:value-of select="life_expectancy"/></td>
<td><xsl:value-of select="military_expenditure_percent_of_gdp"/></td>
<td><xsl:value-of select="gps_lat"/></td>
<td><xsl:value-of select="gps_long"/></td>
2018-11-15 15:53:57 +00:00
-->
2018-11-14 09:11:40 +00:00
</tr>
</xsl:for-each>
</tbody>
2018-11-13 21:33:33 +00:00
</table>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>