Skip to content

base-uri#1 not set correctly #186

@PieterLamers

Description

@PieterLamers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions