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
addElementNames( content );
		}
		catch ( NameException e )
		{
			stack.rollback( );
			throw e;
		}
		stack.commit( );
	}
	/**
	 * Adds the element name and names of nested element in it to name spaces.
	 * 
	 * @param content
	 *            the content to add
	 * @throws NameException
	 *             if any element has duplicate name with elements already on
	 *             the design tree.
	 */
	private void addElementNames( DesignElement content ) throws NameException
	{
		
		
		assert content.getContainer( ) != null;
		
		
		NameCommand nameCmd = new NameCommand( module, content );
		nameCmd.addElement( );
		
		for ( int i = 0; i < content.getDefn( ).getSlotCount( ); i++ )
		{