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: Stephen Cunliffe <scunliffe at digitalfairway dot com>
- Date: Mon, 27 Nov 2000 15:22:57 -0600
- Organization: Digital Fairway Corporation
- References: <3.0.3.32.20001127132647.00919650@pop.ieee.org>
- Reply-To: xsl-list at mulberrytech dot com
Try:
<xsl:variable name = "bogus">18 564 5333</xsl:variable>
[<xsl:value-of select="substring($bogus, (string-length($bogus) - 3), 4)"/>]
Square brackets not req'd...
Naresh Shah wrote:
> 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).
> Thanks,
>
> Naresh Shah
> 732-562-5593
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list