SPFE Documentation | Collections > SPFE Function Reference > get-file-name-from-path
Function: get-file-name-from-path
get-file-name-from-path(path as item()*) as item()*
- Description
-
Returns the file name portion of a local path.
- Return value
-
Return type: item()*
The file name portion of the path.
- Source file
-
$SPFEOT_HOME/1.0/scripts/common/utility-functions.xsl
Parameters
- path
-
Type: item()*
The path for which the file name is to be returned.
Definition
<xsl:function name="sf:get-file-name-from-path"> <xsl:param name="path"/> <xsl:variable name="tokens" select="tokenize($path, '/')"/> <xsl:value-of select="subsequence($tokens, count($tokens))"/> </xsl:function>