Comment 6 for bug 510834

Revision history for this message
Christophe Combelles (ccomb) wrote :

I don't know how the report engine works, but I've tried to dig.

The fix in comment #4 doesn't work.

The n.getparent() loop always reaches the top node (which in None), because the n.tag is never found in odt_parents.
The n.tag is never found in odt_parents because the nodes are not ODT nodes, but SXW nodes!

As a consequence, if I replace match = odt_parents with match = sxw_parents, I don't get an error, but the file is not filled with data. (we still see the directives as in the RML file).
So there is something wrong with the originating root_node, which is of the wrong type.