forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gav...." <brightoncomput...@brightontown.com.au>
Subject RE: [jira] Commented: (FOR-635) images not reproduced in PDFs, if sources are in xdocs/images directory
Date Tue, 16 May 2006 12:11:09 GMT


> -----Original Message-----
> From: Ross Gardler [mailto:rgardler@apache.org]
> Sent: Monday, 15 May 2006 11:20 PM
> To: dev@forrest.apache.org
> Subject: Re: [jira] Commented: (FOR-635) images not reproduced in PDFs, if
> sources are in xdocs/images directory
> 
> Gav.... wrote:
> >>>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),'../')"/>
> >         </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.

No, just a template to convert paths into dotdots.

I'll have a play and create one to remove dotdots.

Gav...

> 
> Ross
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.6/339 - Release Date: 14/05/2006



Mime
View raw message