forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gav...." <>
Subject RE: [jira] Commented: (FOR-635) images not reproduced in PDFs, if sources are in xdocs/images directory
Date Mon, 15 May 2006 13:29:41 GMT
> >
> > So how do we do it?
> >
> > How about stripping ay leading dotdots before we process image
> references?
> Ok, so where is the best place to do this, in the document-to-fo.xsl file
> Or somewhere else?
> In document-to-fo.xsl we can use substring-before to detect for .. and
> remove
> It but can't see how to do it if there is more than one nested level.
> If there was ../../ for instance.
> I'll keep looking, I feel this issue needs doing before the release and so
> Will keep concentrating on this issue for now.

The area of thinking I have at the moment is something like :-

<xsl:when test="starts-with(string(@src),'../')">
          <xsl:value-of select="substring-after(string(@src),'../')"/>

If there is a better tack I'd better know now before I carry on this route.



View raw message