Re: [xsl] only last 14 characters

Subject: Re: [xsl] only last 14 characters
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 14 May 2013 15:47:11 +0200
henry human wrote:

Following case:
An Existing field without certain length (could contain whitespaces). I need ever the last 14 characters:

<data>
<invoice>
  <field >testString</field ></invoice>
</data>

Well <xsl:template match="field"> <xsl:value-of select="substring(., string-length(.) - 13)"/> </xsl:template> should do, as far as I understand the requirement.

Current Thread