Hi Martin
Thanks, it works fine.
brg
henry
--- Martin Honnen <Martin(_dot_)Honnen(_at_)gmx(_dot_)de> schrieb am Di,
14.5.2013:
Von: Martin Honnen <Martin(_dot_)Honnen(_at_)gmx(_dot_)de>
Betreff: Re: [xsl] only last 14 characters
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--