﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
584,Infinite recursion with recursing xi:include with TemplateLoader,jaraco@…,hodgestar,"I've discovered an issue where a self-referencing XML template will trigger an infinite recursion when the template is rendered against a very shallow dataset. I've distilled the problem down to a very small replication of the failure. In distilling, I found that I could only replicate the failure when using the !TemplateLoader. If I instead use a hand-crafted !SimpleLoader, the terminated recursion does not occur (and the document renders properly).

For easy viewing, the script [http://paste.jaraco.com/vmQ6F can be viewed here], and I will attach it as well. Note that the script as written does not fail unless the final line is uncommented.

Because the template can be rendered successfully against the dataset with a simple loader, this behavior strikes me as a deficiency of the !TemplateLoader or of the xi:include handler when used in conjunction with the !TemplateLoader.

This issue is blocking our ability to render a data structure which is inherently recursive, so if you can recommend a workaround, I'm eager to try anything.",defect,closed,major,0.7,General,0.6,fixed,,
