Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Prepending remote url to tei image input

From: "Gavin" <gavin@---------------->
To:
Date: 10/2/2008 4:00:00 AM
Hi All,

I'm working on some odt output stuff generated from xdoc, some of what I am
doing relies on a tei input plugin to convert tei to xdoc.

The current part I'm stuck on involves pulling content from remote locations
- including images.

The remote source tei is like this :-

<figure rend="somepic" url="/images/image.jpg"/>

and I can successfully transform this into xdoc using :-

<xsl:template match="figure">
  <img>
    <xsl:attribute name="src"><xsl:value-of select="@url"/></xsl:attribute>
    <xsl:attribute name="alt"><xsl:value-of select="@rend"/></xsl:attribute>
  </img>
</xsl:template>

and get an xdoc output of :-

<img alt="somepic" src="/images/image.jpg"/>

However, the image is remote to the document so the image will still not
appear. I need to be able to detect and prepend the www.example.com address
to the src, the prepending is easy, but how to capture the remote www
address has got me.

Any clues?

Take a look at https://issues.apache.org/jira/browse/FOR-1121 for more
details.

Thanks

Gav...


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