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
 TableItemDesign
		 add it to active id list, and output type & iid to html
		String type = getActiveIdType( content );
		 (type != null)
		{
			 I
			InstanceID iid = content.getInstanceID( );
			long componentID = ( iid != null ) ? iid.getComponentID( ) : 0;
			setActiveIDTypeIID( content.getBookmark( ), type, iid, componentID );
		}
	}
	private String getActiveIdType( IContent content )
	{
		Object genBy = content.getGenerateBy( );
		String type = null;
		 (genBy instanceof LabelItemDesign)
		{
			type = "LABEL";
		}
		else  (genBy instanceof TemplateDesign)
		{
			type = "TEMPLATE";
		}
		
		else ( genBy instanceof ExtendedItemDesign )
		{
			type = "EXTENDED" ;
		}
		else  ( genBy instanceof TableItemDesign )
		{
			type = "TABLE";
		}
		else  (genBy instanceof ListItemDesign)
		{
			type = "LIST";
		}
		else  ( genBy instanceof TextItemDesign )
		{
			type = "TEXT";
		}
		return type;
	}
	private void setActiveIDTypeIID( String bookmark, String type,
			InstanceID iid, long elementId )
	{
		exportElementID( bookmark, type, elementId );
		 type
		r.attribute( "element_type", type );
		 ( iid != null )
		{
			r.attribute( "iid", iid.toString( ) );
		}
	}
	
	**
	 * Resize chart template and table template element.
	 * 
	 * @param content
	 *            the styled element content
	 *
	private void resizeTemplateElement( IContent content )
	{
			Object genBy = content.getGenerateBy( );
			( genBy instanceof TemplateDesign )
			{
				TemplateDesign template = (TemplateDesign) genBy;
				
				String allowedType = template.getAllowedType( );
				 ( "ExtendedItem".equals(allowedType ) )
				{
					 Resize chart template element
					IStyle style = content.getStyle( );
					style.setProperty( IStyle.STYLE_CAN_SHRINK, IStyle.FALSE_VALUE );
					content.setW( new DimensionType( 3, DimensionType.UNITS_IN ) );
					content.setHeight( new DimensionType( 3, DimensionType.UNITS_IN ) );
				}
				else  ( "Table".equals(allowedType) )
				{
					 Resize table template element
		