<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=622481010-08032005><FONT face=Arial 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>I'm trying to create 
a dtml-document, which concats all content from all documents within a folder. 
Sadly for all objects the standard_html_header and footer is added. I'd like to 
strip these information and show only the content of each found document. 
Therefore I wrote the following script:</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial 
size=2>###CUT</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>&lt;dtml-var 
standard_html_header&gt;<BR>&lt;dtml-let 
folder_url=absolute_url&gt;<BR>&lt;p&gt;<BR>&lt;dtml-let 
upObject="this().aq_parent" 
upTitle="this().aq_parent.title"&gt;</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial 
size=2>&lt;h2&gt;&lt;dtml-var upTitle&gt;&lt;/h2&gt;</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>&lt;dtml-with 
upObject&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;dtml-in expr="objectValues( [ 'Document' 
] )" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sort=id 
skip_unauthorized&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-if expr="id 
&lt;&gt; 'allgemeines' and id &lt;&gt; 'img' and id &lt;&gt; 'pdf' and id 
&lt;&gt; 'aktuelles'"&gt;<BR>&lt;dtml-with 
"_.namespace(standard_html_header='',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
standard_html_footer='')"&gt;<BR>&lt;dtml-call 
"REQUEST.set('renderedheader',1)"&gt;<BR>&lt;dtml-call 
"REQUEST.set('renderedfooter',1)"&gt;<BR>&lt;dtml-var 
sequence-item&gt;<BR>&lt;/dtml-with&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/dtml-if&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;/dtml-in&gt;<BR>&lt;/dtml-with&gt;<BR>&lt;/dtml-let&gt;<BR>&lt;/p&gt;<BR>&lt;dtml-call 
"REQUEST.set('renderedfooter',0)"&gt;</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial 
size=2>&lt;/dtml-let&gt;<BR>&lt;dtml-var 
standard_html_footer&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005>
<DIV><SPAN class=622481010-08032005><FONT face=Arial 
size=2>###CUT</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>Both methods which I 
found googling do not work (&lt;dtml-with 
"_.namespace(standard_html_header='',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
standard_html_footer='')"&gt;<BR>and &lt;dtml-call 
"REQUEST.set('renderedheader',1)"&gt;)<BR></FONT></SPAN></DIV></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>What can I do to 
remove the header and footer for each document?</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>Best 
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>Jens 
Hauser</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>