Failure when using collations in SaxonJS.XPath.evaluate
I was hoping to be able to specify a collation URI as the second parameter to fn:sort when using SaxonJS.XPath.evaluate, but it seems to throw an error: "Cannot read properties of null (reading 'toString')".
Updated by Debbie Lockett over 1 year ago
- Assignee changed from Michael Kay to Debbie Lockett
The error is thrown from within an internal call on
resolve-uri (for the collation URI). Apparently in this case, the supplied
base is null (i.e.
args is an empty sequence), which is not being handled correctly in the
resolve-uri code. The
base comes from the
evalContext.fixed.staticBaseURI (in XPathEval
evaluate), which is null for the Node.js platform (but not for the browser platform - which explains why test xpath/evaluate05 didn't reproduce the problem).
Please register to edit this issue