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>
---
lnst/Common/XmlParser.py | 2 ++
1 file changed, 2 insertions(+)
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):
--
1.8.1.4