Actions
Bug #5863
closedfile:/// URIs do not resolve correctly
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2023-01-28
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
10
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
The following returns file:/home/pumba/
where I would expect file:///home/pumba/
.
As a result, document('file:/home/pumba/file.xml')
cannot find the document, whereas document('file:///home/pumba/file.xml')
can.
SaxonJS returns the expected result.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
xmlns:map="http://www.w3.org/2005/xpath-functions/map"
xmlns:array="http://www.w3.org/2005/xpath-functions/array"
exclude-result-prefixes="#all"
version="3.0">
<xsl:mode on-no-match="shallow-copy"/>
<xsl:output method="html" indent="yes" html-version="5"/>
<xsl:template match="/">
<xsl:value-of select="resolve-uri('..', 'file:///home/pumba/WebRoot/')"/>
</xsl:template>
</xsl:stylesheet>
Please register to edit this issue
Actions