Bug 128166 the xml data can be displayed incorrectly
Description: the xml data can be displayed incorrectly Steps to reproduce: 1. import the attached report design file. 2. set a table mapping as '//Book' 3. add a column mapping '../@location' 4. save and preview. Actual result: the 'Sunderland' is displayed Expect result: the 'Paris' is displayed
data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/RelationInformation.java
String[] temp = rootPath.split( "\\Q/\\E" );
			int count = 0;
			for( int i = 0; i < temp.length; i ++)
			{
				if( temp[i].trim( ).length( )> 0 )
					count++;
			}
			backRefNumber = backRefNumber>count?count:backRefNumber;
		}
		else
		{
			backRefNumber = 0;
		}
	}
	
	/**
	 * If the path is refer to an attribute, use syntax /elementName/@attributeName
	 * then we change it to /elementName[@attributeName] to compliment the standard xpath syntax.
	 * 
	 */ 
	private String fixTrailingAttr( String path )
	{
		if ( path.matches(".*/@.*"))
			path = path.replaceFirst("/@","[@")+"]";
		if ( path.startsWith( "[" ))
			path = path.replaceFirst( "\\Q[\\E", "*[" );
		if ( path.startsWith( "/[" ))
			path = path.replaceFirst( "\\Q/[\\E", "*[" );
		return path;
	}