file:parent
Returns the path to the parent directory of a given path.
parent($path as xs:string) ➔ xs:string?
Arguments | ||||
| $path | xs:string | Path to file/directory | |
Result | xs:string? | |||
Namespace
http://expath.org/ns/file
Links to specifications
Saxon availability
Available in XPath 2.0 and later versions. Implemented since Saxon 9.6. Requires Saxon-PE or Saxon-EE. Available for all platforms.