stk:file.get-type(function)

Gets the file type of a given file, for example "image" for a GIF or JPG file.

xs:stringstk:file.get-type
  1. xs:stringfile-name

Examples

Input

<xsl:value-of select="stk:file.get-type('testimage.jpg')"/>

Result

Image

Parameters

file-name
The filename of the file to get filetype of
Type
xs:string