[xsl] auto-hyperlinker (how to search/replace)?

Subject: [xsl] auto-hyperlinker (how to search/replace)?
From: Terence Kearns <terencek@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 29 May 2003 18:15:28 +1000
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.


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

Current Thread