[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Converting embedded URLs int hot links via XSL


Subject: Re: [xsl] Converting embedded URLs int hot links via XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 19 Apr 2004 17:22:05 +0100

  So, looks like the problem at hand can not be solved
  without using extensions (which I can't)???

Not at all. You could do this in xslt1, as outlined already by Mike Kay
in this thread. rather than using a regexp to find the end ofURI
just use substring-before after first using translate() to make sure
that all your possible terminating characters (eg space, newline,
quotes, brackets) are translated to be the same character.

It's _easier_ in XSLT2 or using an extension element and probably
quicker, but the recursive templates needed wouldn't be that hard
to do in xslt1.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread