stk:text.crop(function)

Crops text. Only whole words are outputted. If the text is supposed to be cropped in the middle of a word, the word is omitted.

xs:stringstk:text.crop
  1. xs:stringsource-text
  2. xs:integernum-characters

Examples

Input

<xsl:value-of select="stk:text.crop('this is a test', 11)"/>

Result

this is a...

Parameters

source-text
Type
xs:string
num-characters
Type
xs:integer