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

Re: [xsl] only last 14 characters


Subject: Re: [xsl] only last 14 characters
From: henry human <henry_human@xxxxxxxx>
Date: Wed, 15 May 2013 19:04:23 +0100 (BST)

Hi Martin
Thanks, it works fine.
brg
henry

--- Martin Honnen <Martin.Honnen@xxxxxx> schrieb am Di, 14.5.2013:

> Von: Martin Honnen <Martin.Honnen@xxxxxx>
> Betreff: Re: [xsl] only last 14 characters
> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Datum: Dienstag, 14. Mai, 2013 15:47 Uhr
> 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