stk:file.create-icon-image(template)

Creates an icon image element based on inputted filetype.

element()stk:file.create-icon-image
  1. xs:stringfile-name
  2. xs:stringicon-folder-path
  3. xs:stringicon-image-prefix
  4. xs:stringfilename extension on icon images

.

Examples

Input

<xsl:call-template name="stk:file.create-icon-image">
    <xsl:with-param name="file-name" select="'testimage.jpg'"/>
</xsl:call-template>

Result

Image icon

Parameters

file-name
filename of the file to create file type icon for
Type
xs:string
icon-folder-path
path to folder where icon images are stored
Type
xs:string
Default
{theme}/all/icons/
icon-image-prefix
filename prefix on icon images
Type
xs:string
Default
icon-
filename extension on icon images
filename extension on icon images
Type
xs:string
Default
png