Subject: Re: [xsl] only last 14 characters From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Tue, 14 May 2013 15:47:11 +0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] only last 14 characters, henry human | Thread | Re: [xsl] only last 14 characters, henry human |
[xsl] only last 14 characters, henry human | Date | Re: [xsl] only last 14 characters, henry human |
Month |