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
		styleBuffer );
		}
		else
		{
			 ( enableMetadata )
			{
				selectHandleTag = getTagByType( display, DISPLAY_FLAG_ALL );
				r.openTag( selectHandleTag );
				r.attribute( HTMLTags.ATTR_CLASS, "birt-foreign-design" ); 
				setActiveIDTypeIID( foreign );
				setBookmark( selectHandleTag, foreign.getBookmark( ) );
			}
			tagName = openTagByType( display, DISPLAY_FLAG_ALL );
			setDisplayProperty( display, DISPLAY_INLINE_BLOCK, styleBuffer );
		}
		setStyleName( foreign.getStyleClass( ) );
		
		 ( !enableMetadata )
		{
			outputBookmark( foreign, tagName );
		}
		 title
		r.attribute( HTMLTags.ATTR_TITLE, foreign.getHelpText( ) );
		 check 'can-shrink' property
		handleShrink( display, mergedStyle, height, w, styleBuffer );
		handleStyle( foreign, styleBuffer, false );
		Object rawValue = foreign.getRawValue( );
		String rawType = foreign.getRawType( );
		boolean isHtml = IForeignContent.HTML_TYPE.equalsIgnoreCase( rawType );
		String text = rawValue == null ? null : rawValue.toString( );
		 ( isHtml )
		{
			Document doc = new TextParser( ).parse( text,
					TextParser.TEXT_TYPE_HTML );
			ReportDesignHandle design = (ReportDesignHandle) runnable
					.getDesignHandle( );
			HTMLProcessor htmlProcessor = new HTMLProcessor( design );
			HashMap styleMap = new HashMap( );
			Element body = null;
			 ( doc != null )
			{
				NodeList bodys = doc.getElementsByTagName( "body" );
				 ( bodys.getLength( ) > 0 )
				{
					body = (Element) bodys.item( 0 );
				}
			}
			 ( body != null )
			{
				htmlProcessor.execute( body, styleMap );
				processNodes( body, styleMap );
			}
		}
		 w
		r.closeTag( tagName );
		 ( enableMetadata )
		{
			r.closeTag( selectHandleTag );
		}
	}
	**
	 * Visits the children nodes of the specic node
	 * 
	 * @param visitor
	 *            the ITextNodeVisitor instance
	 * @param ele
	 *            the specic node
	 *
	private void processNodes( Element ele, HashMap cssStyles )
	{
		for ( Node node = ele.getFirstChild( ); node != null; node = 