commit 3cd14bcc45b0bb3b371e45d8fc5568aae1528b10
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Tue Sep 17 19:36:23 2013 +0200
Fix nested xinclude element bug
I found a bug where xinclude preprocessing works only for elements that
are direct children of lnstrecipe tag. If an xinclude is nested deeper
in the structure it won't be resolved. This patch adds one more
recursion to process xincludes in deeper levels.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Common/XmlParser.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lnst/Common/XmlParser.py b/lnst/Common/XmlParser.py
index 143b289..e50a2f2 100644
--- a/lnst/Common/XmlParser.py
+++ b/lnst/Common/XmlParser.py
@@ -136,6 +136,8 @@ class XmlParser(object):
return node
parent.replace(e, node)
+ else:
+ self._expand_xinclude(e, base_url)
return elem
def _remove_comments(self, doc):
Show replies by date