Bug 152834 support HTML description of the template
The template descrition is a fragment of HTML, use that fragment to render the template in HTML.
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
new StringBuffer( );
				AttributeBuilder.buildStyle( styleBuffer, style, this, false );
				r.attribute( HTMLTags.ATTR_STYLE, styleBuffer.toString( ) );
			}
			return;
		}
		r.startWriter( );
		r.openTag( HTMLTags.TAG_HTML );
		r.openTag( HTMLTags.TAG_HEAD );
		
		
		Report reportDesign = null;	
		 ( report != null )
		{
			reportDesign = report.getDesign( );	
			ReportDesignHandle designHandle = reportDesign.getReportDesign( );
			String title = designHandle.getStringProperty(  IModuleModel.TITLE_PROP );
			 ( title == null )
			{
				
				 ( renderOption != null && renderOption instanceof HTMLRenderOption )
				{
					HTMLRenderOption htmlOption = (HTMLRenderOption) renderOption;
					title = htmlOption.getHtmlTitle( );					
				}
			}
			 ( title != null )
			{
				r.openTag( HTMLTags.TAG_TITLE );
				r.text( title );
				r.closeTag( HTMLTags.TAG_TITLE );
			}
		}
				
		r.openTag( HTMLTags.TAG_META );
		r.attribute( HTMLTags.ATTR_HTTP_EQUIV, "Content-Type" );  
		r.attribute( HTMLTags.ATTR_CONTENT, "texthtml; charset=UTF-8" );  
		r.closeNoEndTag( );
		r.openTag( HTMLTags.TAG_STYLE );
		r.attribute( HTMLTags.ATTR_TYPE, "textcss" ); 
		IStyle style;
		StringBuffer styleBuffer = new StringBuffer( );
		 ( report == null )
		{
			logger.log( Level.WARNING,
					"[HTMLReportEmitter] Report object is null." ); 
		}
		else
		{
			for ( int n = 0; n < reportDesign.getStyleCount( ); n++ )
			{
				styleBuffer.delete( 0, styleBuffer.capacity( ) );
				style = (IStyle) reportDesign.getStyle( n );	
				AttributeBuilder.buildStyle( styleBuffer, style, this, true );
				r.style( Report.PREFIX_STYLE_NAME + n, styleBuffer
						.toString( ), false );
			}
		}
		r.closeTag( HTMLTags.TAG_STYLE );
		fixTransparentPNG( );
		r.closeTag( HTMLTags.TAG_HEAD );
		String reportStyleName = report == null ? null : report.getDesign( )
				.getRootStyleName( );
		r.openTag( HTMLTags.TAG_BODY );
		 ( reportStyleName != null )
		{
			r.attribute( HTMLTags.ATTR_CLASS, reportStyleName );
		}
	