commit 0b2400ef606897cc701fd20e53ac5d6c0d9e194d
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Tue Jul 1 11:54:00 2014 +0200
xml_to_html.xsl: fix validation issues
This patch moves the <link> and <script> elements under the <head>
element and adds a <title> element and a <meta> element specifying the
encoding of the resulting html file.
I also added a forgotten <tr> element.
These changes make the resulting html file a valid HTML5 document.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
result_xslt/xml_to_html.xsl | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/result_xslt/xml_to_html.xsl b/result_xslt/xml_to_html.xsl
index 31fe0d9..9a494ce 100644
--- a/result_xslt/xml_to_html.xsl
+++ b/result_xslt/xml_to_html.xsl
@@ -3,9 +3,13 @@
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<html>
- <body>
+ <head>
+ <title>LNST results</title>
+ <meta charset="utf-8"/>
<link rel="stylesheet" type="text/css"
href="http://www.lnst-project.org/files/result_xslt/xml_to_html.css&...
- <script type="text/javascript"
src="http://www.lnst-project.org/files/result_xslt/xml_to_html.js&qu...
+ <script type="text/javascript"
src="http://www.lnst-project.org/files/result_xslt/xml_to_html.js&qu...
+ </head>
+ <body>
<h2>LNST results</h2>
<xsl:apply-templates select="results/recipe"/>
</body>
@@ -275,7 +279,7 @@
<xsl:template match="result_data">
<table class="result_data">
- <th>Result Data:</th>
+ <tr><th>Result Data:</th></tr>
<xsl:for-each select="*">
<xsl:call-template name="res_data_dict_item"/>
</xsl:for-each>