xsl-list
[Top] [All Lists]

Re: Converting embedded URLs int hot links via XSL

2004-04-19 12:24:21
Finally, I was able to solve the issue.
First, recursively I put temp markers in the string
and then replaced these markers with the <a> tags.

Thanks to all for help.

Abbas

--- David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:

  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

________________________________________________________________________


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




        
                
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash