xsl-list
[Top] [All Lists]

Re: Converting embedded URLs int hot links via XSL

2004-04-19 09:22:05

  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
________________________________________________________________________