Bug 146526 table of contents and bookmarks in target document cannot be selected if report and target document are stored at different disk
steps to reproduce: - create a document at disk D, and move it to disk C - create a report at disk D, and edit a drill through hyperlink - select table of contents and bookmarks in the document expected behavior: - table of contents and bookmarks can be selected actual behavior: - it simply didn't
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/URIUtil.java
* <li>./../hello/
	 * <li>C:\\hello\..\
	 * <li>/C:/../hello/
	 * </ul>
	 * The spearator in the return path is platform-indepedent "/". Please note
	 * that the <code>/</code> in the end of directory will be striped in the
	 * return value.
	 * 
	 * @param base
	 *            the base directory
	 * @param resource
	 *            the full path
	 * @return the relative path.
	 */
	public static String getRelativePath( String base, String resource )
	{
		
		String baseDir = getLocalPath( base );
		String resourceDir = getLocalPath( resource );
		if ( baseDir == null || resourceDir == null )
			return resource;
		File baseFile = new File( baseDir );
		File resourceFile = new File( resourceDir );
		
		baseDir = baseFile.getAbsolutePath( );
		resourceDir = resourceFile.getAbsolutePath( );
		
		int matchedPos = 0;
		for ( matchedPos = 0; matchedPos < baseDir.length( )
				&& matchedPos < resourceDir.length( ); matchedPos++ )