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
/**
	 * Resolves the parent element reference.
	 * 
	 * @param module
	 *            the module information needed for the check
	 */
	public void resolveExtends( Module module )
	{
		if ( extendsRef == null || module == null )
			return;
		if ( extendsRef.isResolved( ) )
			return;
		
		
		
		
		
		
		ElementDefn metaData = (ElementDefn) getDefn( );
		PropertyDefn propDefn = (PropertyDefn) metaData
				.getProperty( IDesignElementModel.EXTENDS_PROP );
		int ns = metaData.getNameSpaceID( );
		DesignElement resolvedParent = module
				.resolveElement( ReferenceValueUtil.needTheNamespacePrefix(
						extendsRef, module ), ns, propDefn );
		if ( resolvedParent != null && isExtendsValid( resolvedParent ) )
		{
			extendsRef.resolve( resolvedParent );
			resolvedParent.addDerived( this );
		}