forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <>
Subject Re: [jira] Commented: (FOR-635) images not reproduced in PDFs, if sources are in xdocs/images directory
Date Mon, 15 May 2006 15:19:35 GMT
Gav.... wrote:
>>>So how do we do it?
>>>How about stripping ay leading dotdots before we process image
>>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
>>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),'../')"/>
>         </xsl:when>

That's where I was thinking, yes. I think you may find there is a 
template for stripping dot dots in the existing dotdots stylesheet, not 
sure though.


View raw message