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/TemplateCommand.java
TemplateException.DESIGN_EXCEPTION_INVALID_TEMPLATE_ELEMENT_TYPE );
		if ( !( module instanceof ReportDesign ) )
			throw new TemplateException(
					module,
					TemplateException.DESIGN_EXCEPTION_TEMPLATE_ELEMENT_NOT_SUPPORTED );
		
		
		TemplateParameterDefinition templateParam = base
				.getTemplateParameterElement( module );
		if ( templateParam == null )
			throw new TemplateException(
					base,
					TemplateException.DESIGN_EXCEPTION_REVERT_TO_TEMPLATE_FORBIDDEN );
		try
		{
			PropertyCommand propertyCmd = new PropertyCommand( module, template );
			propertyCmd.setProperty(
					TemplateElement.REF_TEMPLATE_PARAMETER_PROP, templateParam
							.getName( ) );
		}
		catch ( SemanticException e )
		{
			assert false;
		}
		ContentCommand cmd = new ContentCommand( module, element );
		cmd.transformTemplate( base, template, slotID, false );
		return template;
	}
}