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
return this.originalRootPath;
	}
	
	/**
	 * Return the table's ancestor path. A table's ancestor path is the common prefix that all table columns'
	 * pathes shared. Table's rootpath should only equal to, or prefixed with a table's ancestor path.
	 * @return
	 */
	public String getAncestor( )
	{
		String[] columnNames = this.getColumnNames( );
		
		
		
		
		if ( columnNames.length == 1 )
			return getPath( columnNames[0] );
		String[] paths = new String[columnNames.length];
		for ( int i = 0; i < paths.length; i++ )
		{
			paths[i] = getPath( columnNames[i] ).replaceFirst("\\Q\\[@\\E.*\\Q\\]\\E","");
		}
		String theLongestPath = "";
		for ( int i = 0; i < paths.length; i++ )
		{
			if ( paths[i].split( "\\Q/\\E" ).length > theLongestPath.split( "\\Q/\\E" ).length )
				theLongestPath = paths[i];
		}
		boolean isAbsolutePath = false;
		if ( theLongestPath.startsWith( "" ) )