summaryrefslogtreecommitdiffstats
path: root/filter.py
diff options
context:
space:
mode:
Diffstat (limited to 'filter.py')
-rw-r--r--filter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter.py b/filter.py
index 04d55c7..9488f75 100644
--- a/filter.py
+++ b/filter.py
@@ -694,8 +694,8 @@ class XMLFilter(Filter, MetaPlugin):
e = nselem(XSL_NS, 'apply-templates',
select="*")
template.append(e)
- if do_mix > 1:
- # if elem.getparent() is None: # and not do_mix:
+ if do_mix > 1 or elem.getparent() is None and not children:
+ # and not do_mix:
template = etree.XML(xslt_identity(''))
xslt_root.append(template)