Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] Prepending remote url to tei image input

From: "Gavin" <gavin@---------------->
To:
Date: 10/5/2008 11:34:00 PM
> -----Original Message-----
> From: Colin Paul Adams [mailto:colin@xxxxxxxxxxxxxxxxxx]
> Sent: Thursday, 2 October 2008 2:53 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] 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.

Thanks

Gav...

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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent