Fix xsl error
This commit is contained in:
parent
8d65583ab7
commit
591de1e5eb
2 changed files with 56 additions and 36 deletions
|
@ -1,9 +1,26 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<xsl:stylesheet version="1.0" xmlns:xsl="w3.org/1999/XSL/Transform">
|
<!DOCTYPE xsl:stylesheet>
|
||||||
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<html>
|
<html>
|
||||||
|
<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>
|
<body>
|
||||||
<h1>World Data Overview ...</h1>
|
<h1>World Data Overview ...</h1>
|
||||||
|
<div class="table-wrapper">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>id</th>
|
<th>id</th>
|
||||||
|
@ -40,6 +57,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
|
@ -79,6 +79,8 @@ class WorldDataParser {
|
||||||
$xsl = new XSLTProcessor();
|
$xsl = new XSLTProcessor();
|
||||||
|
|
||||||
$xsl->importStyleSheet($xsl_doc);
|
$xsl->importStyleSheet($xsl_doc);
|
||||||
echo $xsl->transformToXML($xml_doc);
|
$html = $xsl->transformToXML($xml_doc);
|
||||||
|
|
||||||
|
echo $html;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue