This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: the last substring
- From: Steve Ball <Steve dot Ball at zveno dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 19 Nov 2001 14:50:56 +1100
- Subject: Re: [xsl] the last substring
- Organization: Zveno Pty Ltd
- References: <20011116212845.79570.qmail@web10008.mail.yahoo.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
yan bai wrote:
> I have an element like:
> <elem>xxxxx.xxxxx.xxxx.1234</elem>
>
>
> I know substring-before() will read the value before
> the first '.'.
>
> I wonder how I can read the value after the last '.',
> namely 1234.
Last week I added a new template to the XSLT Standard Library
for retrieving the substring after the last occurrance of
a given substring.
You can either get the latest stylesheets from CVS, wait until the
next release or send me an email for the latest snapshot.
Cheers,
Steve Ball
--
Steve Ball | XSLT Standard Library | Training & Seminars
Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas
http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development
Steve.Ball@zveno.com +---------------------------+---------------------
Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list