Bug 201021 Map rule does not take effect on all elements match the condition when preview as XLS [1203]
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/layout/ExcelLayoutEngine.java
addData( data );
	}
	public Data createData( Object txt, StyleEntry entry )
	{
		if ( txt instanceof IDataContent )
		{
			IDataContent dataContent = (IDataContent) txt;
			Object value = dataContent.getValue( );
			if ( ExcelUtil.getType(value).equals( Data.NUMBER) )
			{
				String format = ExcelUtil.getPattern( value, entry
						.getProperty( StyleConstant.NUMBER_FORMAT_PROP ) );
				entry.setProperty( StyleConstant.NUMBER_FORMAT_PROP, format );
				entry.setProperty(StyleConstant.DATA_TYPE_PROP, Data.NUMBER );
				Data data = new Data( value, entry, Data.NUMBER);
				return data;
			}
			else if ( ExcelUtil.getType(value).equals( Data.DATE) )
			{
				String format = ExcelUtil.getPattern( value, entry
						.getProperty( StyleConstant.DATE_FORMAT_PROP ) );
				entry.setProperty( StyleConstant.DATE_FORMAT_PROP, format );
				entry.setProperty( StyleConstant.DATA_TYPE_PROP, Data.DATE );
				Data data = new Data( value, entry, Data.DATE );
				return data;
			}
			entry.setProperty( StyleConstant.DATA_TYPE_PROP, Data.STRING );  
			return new Data( dataContent.getText( ).trim( ), entry, Data.STRING );
			
		}