commit 71c7ae2c47288d8d08e80e98f590ab92f1dcf4df
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Tue Jul 1 11:54:03 2014 +0200
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(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/NetTestResultSerializer.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/lnst/Controller/NetTestResultSerializer.py
b/lnst/Controller/NetTestResultSerializer.py
index ccfb0c9..b36894e 100644
--- a/lnst/Controller/NetTestResultSerializer.py
+++ b/lnst/Controller/NetTestResultSerializer.py
@@ -165,11 +165,7 @@ class NetTestResultSerializer:
impl = getDOMImplementation()
doc = impl.createDocument(None, "results", None)
- xslt_url = lnst_config.get_option("environment", "xslt_url")
- proc_inst = doc.createProcessingInstruction('xml-stylesheet',
- 'type="text/xsl"
href="'+xslt_url+'"')
top_el = doc.documentElement
- doc.insertBefore(proc_inst, top_el)
for recipe in self._results:
recipe_el = doc.createElement("recipe")
Show replies by date