Dear all, I need to develop an OOo Addon to export ODT files to DAISY DTBook like in M$ Office. (see: http://sourceforge.net/projects/openxml-daisy)
I started to wrote an XSLT and run it in OOo with Tools > XML Filter Settings. But I need to make an GUI export dialog to let user to specify some parameters like micro$oft (ISBN, UID, ...) or when you export PDF with OOo. So I tryed to make an "real" OOo Add-on, using JAVA UNO with the Netbeans plugin. I wrote an XML Flat Filter and encapsulate it with XML Filter Settings in a JAR Package. I call storeToUrl() with my Flat filter and I apply the XSLT to the stored document. (using javax.xml.Transform) I don't like this way because it's tricky and user need to install two files unless you can integrate JAR Package in an OXT. I think about another way: - storeToUrl() in odt file in an tempory directory - unzip odt file and make concat styles.xml and content.xml with JAVA code - apply XSLT transform using JAVA code This way is more tricky, but I can manipulate images files and objects easier (without embed base64 encoding). It seems that Eric Bellot use these two ways in his DocBook Exporter writing in python (see: http://www.chez.com/ebellot/ooo2sdbk/) I wonder if a better way exist to make Export Filter with parameters, and why Flat XML Filter isn't pre-installed in OOo ? Cordially Vincent Spiewak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
