[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: Transforming/trimming text in XSLT 2.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 4 Jul 2006 19:05:15 +0100
> > Basically I am looking for a way to capture all the text 
> that appears 
> > after the last colon.
> 
> replace($in, ':([^:]*)$', '$1')

Alternatively, and perhaps more legibly,

tokenize($in, ':')[last()]


Michael Kay
http://www.saxonica.com/

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member