| '''Summary'''
|Returns the parent directory of the path specified by {{Code|$path}}, which is the component before the last directory separator.
|-
| '''Examples'''
|
* <code><nowiki>file:dir-name(static-base-uri())</nowiki></code> returns the directory of the current XQuery module.
|}