This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: the last substring


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]