Describe the bug
When trying to get fn:transform#1 to behave in our environment, we found that base-uri#1 did not return what we expected. Rather than returning the path it returned /db.
BTW document-uri#1 did return the path, so that served as a workaround.
Expected behavior
We expect the path to $doc to be returned when calling base-uri($doc).
To Reproduce
With any document path:
let $disk-path as xs:string := 'file:///C:/intranet/components/benjamins.com/xsl/general-web-templates.xsl'
let $doc as document-node() := doc($disk-path)
return base-uri($doc)
Context (please always complete the following information)
- Version: [Elemental 6.9.0]
- Java: various
- OS: Windows 11, Linux
We did not check whether a similar problem exists for in memory documents. Also, there is another open issue regarding fn:transform, #169 which might be related to this one.