Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] Prepending remote url to tei image input [Thread Next] Re: [xsl] Prepending remote url to tei image inputTo: Date: 10/2/2008 4:53:00 AM >>>>> "Gavin" == Gavin <gavin@xxxxxxxxxxxxxxxx> 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.
--
Colin Adams
Preston Lancashire | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
