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
}
	private void appendErrorMessage( int index, ElementExceptionInfo info )
	{
		
		EngineResourceHandle rc = EngineResourceHandle.getInstance( );
		r.Code( "			<div>" );
		r.Code( "				<div  id=\"error_title\" style=\"text-decoration:underline\">" );
		String name = info.getName( );
		 ( name != null )
		{
			r.text( rc.getMessage( MessageConstants.REPORT_ERROR_MESSAGE,
				new Object[]{info.getType( ), name } ), false );
		}
		else
		{
			r.text( rc.getMessage( MessageConstants.REPORT_ERROR_MESSAGE_WITH_ID,
					new Object[]{info.getType( ), info.getID( ) } ), false );
		}
			r.Code( "<div>" );
			
		ArrayList errorList = info.getErrorList( );
		ArrayList countList = info.getCountList( );
		for ( int i = 0; i < errorList.size( ); i++ )
		{
			String errorId = "document.getElementById('error_detail" + index + "_" + i + "')";
			String errorIcon = "document.getElementById('error_icon" + index + "_" + i + "')";
			String onClick = " (" + errorId + ".style.display == 'none') { "
					+ errorIcon + ".innerHTML = '- '; " + errorId
					+ ".style.display = 'block'; }" + "else { " + errorIcon
					+ ".innerHTML = '+ '; " + errorId + ".style.display = 'none'; }";
			r.Code("<div>");
			BirtException ex = (BirtException) errorList.get( i );
			r.Code( "<span id=\"error_icon" + index + "_" + i
					+ "\"  style=\"cursor:pointer\" onclick=\"" + onClick
					+ "\" > + <span>" );
			
			r.text( ex.getLocalizedMessage( ) ); 
			
			
		
			r.Code( "				<pre id=\"error_detail" + index + "_" + i 
				+ "\" style=\"display:none;\" >" );
		
			
			String messageTitle = rc.getMessage(
					MessageConstants.REPORT_ERROR_ID, new Object[]{
							ex.getErrorCode( ) ,
							countList.get( i )} );
			String detailTag = rc
					.getMessage( MessageConstants.REPORT_ERROR_DETAIL );
			String messageBody = getDetailMessage( ex );
			boolean indent = r.isIndent( );
			r.setIndent( false );
			r.text( messageTitle, false );
			r.Code( "\r\n" );
			r.text( detailTag, false );
			r.text( messageBo