xsl-list
[Top] [All Lists]

auto-hyperlinker (how to search/replace)?

2003-05-29 01:15:28
Is it possible to write some XSL code which will search some text() for a URL pattern and replace it with a hyperlinked version of itself.

ie.

lah lah lah http://foo/bar.html rah rah rah

gets turned into

lah lah lah <a href="http://foo/bar.html";>http://foo/bar.html</a> rah rah rah

for that matter, what are your options for search/replace since translate() only does one character.

--
Terence Kearns: Web Developer
University of Canberra: +61 2 6201 5516



XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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