This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: function substring
- To: xsl-list at mulberrytech dot com
- Subject: Re: function substring
- From: Larry_Mason at i2 dot com
- Date: Mon, 27 Nov 2000 12:55:16 -0600
- Reply-To: xsl-list at mulberrytech dot com
> I would like to know how I can use "substring-after" function or How can
I
> trim the value of the text.
> example: <xsl:value-of select="."/> value is "18 564 5333"
> I need last 4 numbers to show in output instead of whole value (18 564
5333).
If the format is fixed, you could use
<xsl:value-of select="substring(.,8)"/>
otherwise this will get whatever is after the second space
<xsl:value-of select="substring-after(substring-after(.,' '),' ')"/>
Cheers!
Larry
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list