xsl-list
[Top] [All Lists]

Re: [xsl] string token removal

2006-08-09 08:55:06

Assuming that "year" is any string of 
space, four digits, comma
and you want to replace them by a comma
then in xslt2 you can go
<xsl:value-of select="replace(.,' [0-9][0-9][0-9][0-9],',',')"/>
in xslt1 you'd have to try a lot harder unless you have acces sto an
extension function with regular expression support, which some xslt
systems do have.

David

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