Seeking one help on xsl payment file template. I have to restrict the length of a tag after for loop to 140 characters. In attached xml, after concatenating the DocumentPayable/DocumentNumber/ReferenceNumber, I want to print only 140 characters in Ustrd tag for one payment info tag (i.e. PmtInf). How can this be achieved via xsl? I am attaching the current working xsl template wherein I am able to concatenate the values and xml file which has got the sample data.
<xsl:variable name="varustrd" select="oraext:create-delimited-string (DocumentPayable/DocumentNumber/ReferenceNumber, ',' )"/>
<xsl:for-each select="DocumentPayable">
<Ustrd>
<xsl:value-of select="(DocumentNumber/ReferenceNumber)"/>
</Ustrd>
<Ustrd1>
<xsl:value-of select="$varustrd"/>
</Ustrd1>