Bug 136241 [regression]Preview template in web viewer and pdf didn't get correct effect.
Description: Preview template items in web viewer and pdf didn't get correct effect. Steps to reproduce: 1. Create template items. 2. Preview in Web Viewer and pdf. Expected result: Same effect as in html. Actual result: In web viewer, see only blank box. In pdf, blank page.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentCommand.java
TemplateCommand cmd = new TemplateCommand( module, element );
		TemplateParameterDefinition templateParam = cmd.checkAdd( newElement,
				slotID );
		ContentRecord addTemplateParam = null;
		if ( templateParam != null )
			addTemplateParam = new ContentRecord( module, module,
					ReportDesign.TEMPLATE_PARAMETER_DEFINITION_SLOT,
					templateParam, true );
		
		ContentReplaceRecord replaceRecord = new TemplateTransformRecord(
				module, element, slotID, oldElement, newElement );
		ActivityStack stack = getActivityStack( );
		stack.startFilterEventTrans( replaceRecord.getLabel( ) );
		try
		{
			doDelectAction( oldElement, unresolveReference );
		}
		catch ( SemanticException ex )
		{
			stack.rollback( );
			throw ex;
		}
		if ( addTemplateParam != null )
			stack.execute( addTemplateParam );
		
		stack.execute( replaceRecord );
		try
		{
			addElementNames( newElement );
		}