xsl-list
[Top] [All Lists]

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

2006-07-04 11:05:34
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>