﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
420,"XInclude drops xmlns=""http://www.w3.org/1999/xhtml""",jcigar@…,cmlenz,"I have the following file called ""_browse.xml"":
{{{
#!xml
<?xml version=""1.0"" encoding=""utf-8"" standalone=""yes""?>
<response xmlns:py=""http://genshi.edgewall.org/""
          xmlns:xi=""http://www.w3.org/2001/XInclude""
          py:with=""count=c.count_filtered ; limit=c.limit ; offset=c.offset"">

    <meta>
        <requested py:if=""c.requested"" format=""json"">${c.requested}</requested>
    </meta>

    <body format=""html"">
        <xi:include href=""${c.body}"" />
    </body>

    <pagination format=""html"">
        <xi:include href=""_pagination.html"" />
    </pagination>

</response>
}}}

I have the following in my controller:
{{{
#!python
    def children(self, id):
        self._browse(id)
        c.body = '_child_content.html'
        response.content_type = 'application/xml'
        return render('folder/_browse.xml', method='xml')
}}}

""_child_content.html"" contains the following:
{{{
#!xml
<div xmlns=""http://www.w3.org/1999/xhtml""
     xmlns:py=""http://genshi.edgewall.org/""
     xmlns:xi=""http://www.w3.org/2001/XInclude"">
    <!-- $Id: _child_content.html 4227 2011-01-10 16:30:15Z jcigar $ -->
    <div py:for=""child in c.results"" style=""margin-bottom: 15px;"" id=""content_${child.id}"" py:with=""content=child"">
        <xi:include href=""../${child.type.name.replace(' ', '_')}/_resume.html"">-->
            <xi:fallback>
                <xi:include href=""../content/_resume.html"" />
            </xi:fallback>
        </xi:include>
    </div>
</div>
}}}

The problem is that the generated <pagination> tag is rendered as <pagination format=""html""> instead of <pagination xmlns=""http://www.w3.org/1999/xhtml"" format=""html"">. When I copy/paste the <xi:include ...> template then the xmlns=""..."" is kept. This is a problem because I use an .appendChild together with an .importNode() on the client side to add the .firstElementChild of <pagination>, but it fails (output is broken under Firefox)",defect,new,major,0.9,Template processing,0.6,,,jcigar@…
