[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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:

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

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