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/core/DesignElement.java
{
			if ( tmpContainer instanceof ListingElement
					|| tmpContainer instanceof MasterPage )
			{
				List errors = tmpContainer.checkContent( module, this, slotId,
						defn );
				return errors.isEmpty( );
			}
			tmpContainer = tmpContainer.getContainer( );
		}
		return retValue;
	}
	/**
	 * Checks whether a type of elements can reside in the given slot of the
	 * current element. Besides the type check, it also checks the cardinality
	 * of this slot.
	 * 
	 * @param slotId
	 *            the slot id of the current element
	 * @param defn
	 *            the element definition
	 * 
	 * @return <code>true</code> if elements with the definition
	 *         <code>defn</code> can reside in the given slot. Otherwise
	 *         <code>false</code>.
	 */
	private boolean canContainInRom( int slotId, IElementDefn defn )
	{
		if ( slotId < 0 || slotId >= getDefn( ).getSlotCount( ) )
			return false;