On a Windows system, file:parent returns a path with backslashes. When supplying this as second argument to fn:resolve-uri, an error occurs:
resolve-uri('abc.xml',file:parent('.')) => [FORG0002] URI argument is invalid: "C:\user\ptools".
This should help:
resolve-uri('abc.xml', file:path-to-uri(file:parent('.')))
By the way, I think that we should some more examples both in the File Module spec. and in our Wiki..
Once more, thanks a lot!
You are welcome! Christian