Dear BaseX people,

extension function file:resolve-path() shows a behaviour which appears to me inconsistent and probably not intended:

- if called with a single parameter, a path containing ".." is resolved as expected
- if called with two parameters, the ".." steps are not resolved.

I would expect the resolution of ".." steps to be always a part of path resolution.

Example:

cd C:\a\b\c

file:resolve-path('../x')
=>
C:\a\b\x

file:resolve-path('../x', 'file:///C:/a/b/c/')
=>
C:\a\b\c\..\x

file:resolve-path('../x    ', 'file:///C:/a/b/c/' ! file:resolve-path(.)
=>
C:\a\b\x

Greetings,
Hans-Jürgen