Bug 134944 Page footer displays in wrong place when preview in Web Viewer.
Description: Page footer displays in wrong place when preview in html. Steps to reproduce: 1. New sample source and dataset from customers. 2. Drag dataset to layout. 3. Insert content to master page footer. 4. Preview in web viewer Expected result: Page footer displays at the end of the report. Actual result: Page footer displayed in the middle of the report and overlapped with report body content.
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
l.FileUtil;
import org.eclipse.birt.report.model.api.ReportDesignHandle;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
**
 * <code>HTMLReportEmitter<code> is a subclass of
 * <code>ContentEmitterAdapter<code> that implements IContentEmitter
 * interface to output IARD Report ojbects to HTML file.
 * 
 * @version $Revision: 1.87 $ $Date: 20060405 07:00:53 $
 *
public class HTMLReportEmitter extends ContentEmitterAdapter
{
	**
	 * the output format
	 *
	public static final String OUTPUT_FORMAT_HTML = "HTML"; 
	**
	 * the default target report file name
	 *
	public static final String REPORT_FILE = "report.html"; 
	**
	 * the default image folder
	 *
	public static final String IMAGE_FOLDER = "image"; 
	**
	 * output stream
	 *
	protected OutputStream out = null;
	**
	 * the report content
	 *
	protected IReportContent report;
	**
	 * the report runnable instance
	 *
	protected IReportRunnable runnable;
	**
	 * the render options
	 *
	protected IRenderOption renderOption;
	**
	 * should output the page header & footer
	 *
	protected boolean outputMasterPageContent = true;
	**
	 * specifies if the HTML output is embeddable
	 *
	protected boolean isEmbeddable = false;
	**
	 * the url encoding
	 *
	protected String urlEncoding = null;
	**
	 * specified the current page number, starting from 0
	 *
	protected int pageNo = 0;
	**
	 * the <code>HTMLWriter<code> object that is used to output HTML content
	 *
	protected HTMLWriter writer;
	**
	 * the image reder context
	 *
	protected Object renderContext;
	**
	 * indicates that the styled element is hidden or not
	 *
	protected Stack stack = new Stack( );
	**
	 * An Log object that <code>HTMLReportEmitter<code> use to log the error,
	 * debug, information messages.
	 *
	protected static Logger logger = Logger.getLogger( HTMLReportEmitter.class
			.getName( ) );
	**
	 * html image handler
	 *
	protected IHTMLImageHandler imageHandl