forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clay Leeds <webmaes...@mac.com>
Subject Re: [jira] Commented: (FOR-872) Updated odt_to_xhtml.xsl to pass <title> & <h1> elements.
Date Wed, 10 May 2006 03:19:32 GMT
On May 5, 2006, at 4:58 PM, David Crossley wrote:
> Clay Leeds (JIRA) wrote:
>>     [ http://issues.apache.org/jira/browse/FOR-872? 
>> page=comments#action_12377939 ]
>>
>> Clay Leeds commented on FOR-872:
>> --------------------------------
>>
>> Uh oh... The images don't work as well as planned. The Forrest  
>> resources.xmap places them in '../images/' instead of 'images/'.  
>> Since the images were placed in 'build/images/' instead of 'build/ 
>> site/images/' I didn't notice the problem until I tested on a  
>> separate server.
>>
>> BTW, we also need to ensure embedded images are placed in  
>> subdirectories based on $filename (similar to how OOo plugin  
>> works) to ensure embedded images from different files have a  
>> unique path, to ensure integrity of the page (if two embedded  
>> images are assigned the same name, then the image from the last  
>> file transformed would replace earlier versions with the same name).
>
> There is recent discussion in the mail archives about
> relative paths to images. It causes the problem that
> you refer to.
>
> -David

I think I found the thread[1]. But I don't think it helps much.

The images I'm 'referencing' are embedded in the OpenOffice.org ODT  
files.  I don't refer to them as 'images/blah.jpg'. I don't place  
them in 'xdocs/images/' or 'resources/images/' and then reference  
them using relative paths. I pasted the graphics into OpenOffice.org  
files. It is the Cocoon pipeline that is copying them to build/ 
images/ instead of build/site/images/. Cocoon copies them from their  
embedded 'Pictures/' directory in the ODT 'zip' file to build/images/ 
blah.jpg instead of build/site/images/blah.jpg.

What I think I need to do, is modify the Cocoon pipeline to ensure  
images are copied from {$filename/Pictures/*.jpg} them to build/site/ 
images/*.jpg.

Even better--since, as I mentioned in my post, there might be a  
problem of having the same image name signify different images, it  
would be best to have the pipeline copy the files (and reference  
them!) to: build/site/images/$filename/*.jpg

[1]
http://thread.gmane.org/gmane.text.xml.forrest.devel/20274/focus=20291

[2]
http://article.gmane.org/gmane.text.xml.forrest.devel/20301


Clay Leeds
webmaestro@mac.com

My religion is simple. My religion is kindness.
-- HH Dalai Lama of Tibet




Mime
View raw message