f:flatten-path — Removes “.” and “..” segments from the path of a URI.

Function:
{http://docbook.org/ns/docbook/functions}flatten-path#1
Defined in:
../standalone-functions.xsl
Used in:
main.xsl
Since:
2.6.0

Synopsis

f:flatten-path($hierarchical-uri as xs:string) as xs:anyURI

Description

This function removes . and .. segments from the path portion of a (assumed to be hierarchical) URI. It issues a warning (but does not cause the stylesheet to fail) if an attempt is made to navigate beyond the root.