I have a page template containing two TBBs. The first renders the component presentations, and the second is the default finish actions. The page contains a component presentation that writes an XML document to Output.
The output is intended to be the xml document, however instead of the bare document, it is wrapped in a <tcdl:ComponentPresentation/>
element. In the template builder I can see that after executing the first TBB, the Output has this spurious elemnent, but once I step through the Default Finish Actions, I can see it getting cleaned up by the Cleanup Template TBB.
By the time I return to my page template scope and view the Output in the result step, the clean output is still to be seen. When I publish the page, however, the tcdl wrapper is present in the output.
When I preview the page, the output is as desired. Is there an expected difference in the way the clean-up works in preview and publish mode? For example, does the behaviour depend on the configuration of the publication target?
EDIT: I've just followed up on that suspicion, and it turns out that setting the target language to None
(instead of ASP.NET) gets me the desired output. But why?
<tcdl:ComponentPresentation/>
in my (xml) pages...