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

Subject: RE: [xsl] Transforming/trimming text in XSLT 2.0
From: Nadia.Swaby@xxxxxx
Date: Tue, 04 Jul 2006 15:18:03 -0400
Thanks, Michael.  This suggestion works great!

Nadia




Michael Kay <mike@xxxxxxxxxxxx>
2006-07-04 14:05
Please respond to xsl-list

 
        To:     xsl-list@xxxxxxxxxxxxxxxxxxxxxx
        cc: 
        Subject:        RE: [xsl] Transforming/trimming text in XSLT 2.0


> > 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