forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Web Maestro Clay <the.webmaes...@gmail.com>
Subject ODT - Graphics objects aren't created in subdirs
Date Wed, 07 Jun 2006 15:17:24 GMT
I'm having problems getting my image pipeline to work:

With the following code in input.xmap, the images are coming through  
in the ROOT directory (/), but in subdirectories, empty image files  
(0Kb) are created. For example, a JPG image embedded in the file / 
products/index.odt, causes the creation of a 0Kb JPG image file here:

build/site/products/openDocumentEmbeddedImage/zip-products/index.odt/ 
file-Pictures/1000000000000118000000C2557F1084.jpg

Here's the pipeline:

forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/ 
input.xmap

     <!-- Image Pipeline -->
     <map:pipeline internal="true">
       <map:match pattern="openDocumentEmbeddedImage/zip-{1}.odt/file- 
**.*">
         <map:read src="jar:file:///{lm:project.{1}!/{2}.{3}}" mime- 
type="image/{3}" />
       </map:match>
       <map:match pattern="**/openDocumentEmbeddedImage/zip-{1}.odt/ 
file-**.*">
         <map:read src="jar:file:///{lm:project.{1}/{2}!/{3}.{4}}"  
mime-type="image/{4}" />
       </map:match>
     </map:pipeline>

Any ideas?

BTW, originally, I'd hoped to place *all* image files in the path:

/images/openDocumentEmbeddedImages/zip-[name-of-subdir]/[file-name]/*.*

But I had problems getting it to work. The current solution works (at  
least for files in the root directory).

Web Maestro Clay
the.webmaestro@gmail.com

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




Mime
View raw message