Changes

Jump to navigation Jump to search
123 bytes added ,  01:17, 3 December 2013
no edit summary
=Path Functions=
[[Mark|Introduced with Version 7.8:]] ==file:base-name==
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|file:base-name|$path as xs:string|xs:string}}<br />{{Func|file:base-name|$path as xs:string, $suffix as xs:string|xs:string}}<br />
|-
| '''Summary'''
|Returns the base-name of the path a file or directory specified by {{Code|$path}}, which . An empty string is returned if the component after path points to the last root directory separator.<br />If {{Code|$suffix}} is specified, or if it will be trimmed from the end of the resultcontains no directory separators.<br />
|}
==file:dir-name==
 
[[Mark|Introduced with Version 7.8:]]
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|file:dir-nameparent|$path as xs:string|xs:string?}}<br />
|-
| '''Summary'''
|Returns the parent directory of the path a file or directory specified by {{Code|$path}}, which . An empty sequence is returned if the component before the last path points to a root directory, or if it contains no directory separatorseparators.<br />
|-
| '''Examples'''
|
* <code><nowiki>file:dir-nameparent(static-base-uri())</nowiki></code> returns the directory of the current XQuery module.
|}
;Version 7.8
* Added: [[#file:parent|file:parent]], [[#file:name|file:name]]
* Updated: [[#file:read-binary|file:read-binary]], [[#file:write-binary|file:write-binary]]: {{Code|$offset}} and {{Code|$length}} arguments added.
* Deleted: file:base-name, file:dir-name
;Version 7.7
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu