Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Transforming/trimming text in XSLT 2.0


Subject: RE: [xsl] 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
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor