Bug 148747 Design become invalid when I extend a masterpage from Library
The attachment contains a report file and a library file. Reproduce: 1. Deploy the library("lib"), and open the report. 2. Drag Masterpage("page1") from "lib" to report. 3. Reopen the report, it become invalid.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
DesignSchemaConstants.HEADER_TAG );
		
		
		writeContents( obj, ListItem.GROUP_SLOT, null );
		writeContents( obj, ListItem.DETAIL_SLOT,
				DesignSchemaConstants.DETAIL_TAG );
		writeContents( obj, ListItem.FOOTER_SLOT,
				DesignSchemaConstants.FOOTER_TAG );
		writer.endElement( );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.design.elements.DesignVisitor#visitListGroup(org.eclipse.birt.report.model.design.elements.ListGroup)
	 */
	public void visitListGroup( ListGroup obj )
	{
		writer.startElement( DesignSchemaConstants.GROUP_TAG );
		super.visitListGroup( obj );
		writeContents( obj, ListGroup.HEADER_SLOT,
				DesignSchemaConstants.HEADER_TAG );
		writeContents( obj, ListGroup.FOOTER_SLOT,
				DesignSchemaConstants.FOOTER_TAG );
		writer.endElement( );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.design.elements.DesignVisitor#visitTable(org.eclipse.birt.report.model.design.elements.TableItem)
	 */