diff --git a/product/ERP5OOo/OOoTemplate.py b/product/ERP5OOo/OOoTemplate.py
index e3c8160df2a817b7820e27c242e48331c4868305..6d8645087f7feb6b9f83f9cf21c049c6cb0455de 100644
--- a/product/ERP5OOo/OOoTemplate.py
+++ b/product/ERP5OOo/OOoTemplate.py
@@ -421,7 +421,7 @@ class OOoTemplate(ZopePageTemplate):
       return replacement
 
     xml_doc = etree.XML(text)
-    for office_include in xml_doc.xpath('//*[name() = "office:include"]'):
+    for office_include in xml_doc.xpath('//office:include', namespaces=xml_doc.nsmap):
       marshal_list = office_include.xpath('./marshal')
       if marshal_list:
         from xml.marshal.generic import loads