f:relative-path
f:relative-path — Give two file paths, what’s the relative path between them?
Function:
{http://docbook.org/ns/docbook/functions}relative-path#2
Defined in:
modules/functions.xsl
Used in:
modules/objects.xsl
Synopsis
f:relative-path( | $base as xs:string, |
$path as xs:string) as xs:string |
Description
This function attempts to determine the relative path between two
absolute paths. For example, given a base path of
/a/base/uri/path/
and a path of
/a/base/uri/with/other
, the results is
../with/other
.
If the path is an absolute URI (that isn’t a file:
URI),
then the URI is returned unchanged.