Resolution: Won't Fix
Affects Version/s: 2.26.10, 2.28.00
Fix Version/s: None
When in the doBeforeRender the contentType is set and the template is a freemarker template.
Reproduced in the archetype, version 1.07.08 and 1.09.00.
Create a component that does nothing else than
in the doBeforeRender
Then build and start the project.
In the configuration make a sitemap item that uses this component.
Add a ftl template that the component uses containing a ftl script that contains xml.
Load the page in the web browser and check the content type.
Observed result: text/html
Expected result: application/xml