file:path-to-uri

Transforms a file system path into a URI.

path-to-uri($path as xs:string) ➔ xs:anyURI

Arguments

 

$path

xs:string

Path to file/directory

Result

xs:anyURI

Namespace

http://expath.org/ns/file

Links to specifications

EXPath File Module 1.0

EXPath File Module 4.0

Saxon availability

Available in XPath 2.0 and later versions. Implemented since Saxon 9.5. Requires Saxon-PE or Saxon-EE. Available for all platforms.