zkh152 / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Directive #include (velocity) #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Process file "main.odt". This file has the directive  #include("example.odt")
2.Use the Engine templante Velocity

What is the expected output? What do you see instead?
My expected output is a file with the content of these two files.
Instead, there is an exception:
Exception in thread "main" 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource 'example.odt'

What version of the product are you using? On what operating system?
I'm using the version 1.0.0.0.

Please provide any additional information below.

Original issue reported on code.google.com by fernando...@gmail.com on 2 Feb 2013 at 10:52

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

If I have understood your need, you wish merge 2 odt by using Velocity 
#include. The answer is that it's not possible because :

 * an odt is a zip which contains several xml entries.
 * #include is used to inlude a template on a main template. Template is a simple file (and not a zip).

Merge several odt in one odt is not in the scope in XDocReport.

Perhaps you can do that with ODFDOM? I don't know.

Regards Angelo

Original comment by angelo.z...@gmail.com on 2 Feb 2013 at 11:31