-----Original Message-----
From: Colin Paul Adams
[mailto:colin(_at_)colina(_dot_)demon(_dot_)co(_dot_)uk]
Sent: Thursday, 2 October 2008 2:53 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Prepending remote url to tei image input
"Gavin" == Gavin <gavin(_at_)16degrees(_dot_)com(_dot_)au> writes:
Gavin> The remote source tei is like this :-
Gavin> <figure rend="somepic" url="/images/image.jpg"/>
Gavin> However, the image is remote to the document so the image
Gavin> will still not appear. I need to be able to detect and
Gavin> prepend the www.example.com address to the src, the
Gavin> prepending is easy, but how to capture the remote www
Gavin> address has got me.
Gavin> Any clues?
Probably you want to resolve @url relative the the base URI of the
figure element.
Are you using XSLT 2.0? If so, then this is easy, as there are
built-in XPath functions to do it.
I checked, it seems we are using xalan 2.70 which is xslt 1.0 based. I did
try the baseuri method anyway, no luck.
Thanks
Gav...
--
Colin Adams
Preston Lancashire
--~------------------------------------------------------------------
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>
--~--
--
Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.524 / Virus Database: 270.6.21 - Release Date: 9/11/2008
12:00 AM
--~------------------------------------------------------------------
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>
--~--