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@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
NetTestResultSerializer: add method get_result_html

The new method creates the xml result file that we have been using until
now, reads a specified XSL file (based on the appropriate config option)
and performs a XSLT transformation to create an html file.

The method get_result_xml was renamed to _generate_xml because it is
used by both the old get_result_xml and the new get_result_html methods.

Signed-off-by: Ondrej Lichtner <olichtne@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
lnst-ctl: add option -t,--html

This option takes a filename argument. If specified LNST will generate
an html file that contains formatted result data.

Signed-off-by: Ondrej Lichtner <olichtne@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
NetTestResultSerializer: remove xslt reference in xml

This patch removes the xslt reference that was added to generated xml
files. The original plan was to use this so that the browser can
automatically transform the xml file to a html file. We later discovered
that this is not possible in modern browsers due to security issues of
referencing documents from foreign domains. The reference is therefore
useless and removed.

Signed-off-by: Ondrej Lichtner <olichtne@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>