Project

Profile

Help

Bug #5863

closed

file:/// URIs do not resolve correctly

Added by Martynas Jusevicius about 1 year ago. Updated about 1 year ago.

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

Also available in: Atom PDF