Skip to content
Renaud Guillard edited this page Jun 3, 2013 · 8 revisions

Strings manipulation

The <<file ns/xsl/strings.xsl>> stylesheet provides several templates to extend XSLT 1.0 string functions.

Usage

Example

!xml
	<call-template name="str.wrap">
		<with-param name="text" select="$someText" />
		<with-param name="lineMaxLength" select="42" />
		<with-param name="endlChar" select="'
'" />
	</call-template>

Remarks

Most of complex templates such as str.wrap make extensive use of recursion. Calling these templates on very large text chunks may produce stack or memory overflow.

See also

Clone this wiki locally