Hi Jan,
I am sorry but at the moment there is - to my knowledge - way of specifying a custom prefix to the base-uri(). You can as well, starting from 6.3, provide a path to documents inside a collection via:
for $doc in collection('test/dir') return base-uri($doc)
Anyway, regarding your issue:
for $doc in collection('test/dir') return replace(base-uri($doc),'file:/path/foo/bar/','')
might do the trick.
Kind regards Michael Am 26.10.2010 um 11:16 schrieb Jan Vlčinský:
I tried many ways how to specify target - without and with slash and backslash - no change. Is there any way to manage that?
Jan Vlčinský
PS: Be sure this is not a problem if it is not possible. it would be only a bit nicer.