string-maxlength

<xsl:include href="../plugins/tenandtwo-xslt-processor/xsl/string.xsl" />

<xsl:call-template name="string-maxlength">
    <xsl:with-param name="value" select="$value" />
    <xsl:with-param name="max" select="$max" />
</xsl:call-template>

TEST 1 : PASS
string-maxlength :
– value = 1234 6789 1234 6789
– max =

result (19) :
1234 6789 1234 6789


TEST 2 : PASS
string-maxlength :
– value = 1234 6789 1234 6789
– max = 12

result (12) :
1234 6789 1…


TEST 3 : PASS
string-maxlength :
– value = This & That
– max = 8

result (7) :
This &…