[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Prepending remote url to tei image input

Subject: RE: Prepending remote url to tei image input
From: "Gavin" <gavin@xxxxxxxxxxxxxxxx>
Date: Mon, 6 Oct 2008 09:33:34 +1000
RE:  Prepending remote url to tei image input
> -----Original Message-----
> From: Colin Paul Adams [mailto:colin@xxxxxxxxxxxxxxxxxx]
> Sent: Thursday, 2 October 2008 2:53 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Prepending remote url to tei image input
> >>>>> "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.

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.



> --
> Colin Adams
> Preston Lancashire
> --
> 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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.