-
Notifications
You must be signed in to change notification settings - Fork 1
strings
Renaud Guillard edited this page Jun 3, 2013
·
8 revisions
The <<file ns/xsl/strings.xsl>>
stylesheet provides several templates to extend XSLT 1.0 string functions.
Example
!xml
<call-template name="str.wrap">
<with-param name="text" select="$someText" />
<with-param name="lineMaxLength" select="42" />
<with-param name="endlChar" select="'&#13;&#10;'" />
</call-template>
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.