Page 1 of 1

OpenDoPE templating on Android

PostPosted: Thu Feb 19, 2015 1:08 am
by uvm
Hi all,

I've been looking into the possibility of using docx4j's OpenDoPE data binding infrastructure for templating Word documents right on an Android device.

While looking through the docx4j android branch on github, I noticed that XSLT using Xalan had to be avoided on Android to get the HTML export working. I started investigating the binding code in BindingHandler.java#L189 and noticed that it, too, seems to use XSLT (See link).

Basically, I'm trying to assess how much work it would take to get the whole data binding infrastructure running on Android. If I'd have to replace all the relevant XSLT code, this probably wouldn't fit in my time budget and I'd have to find a solution elsewhere.

Any guidance would be much appreciated.

Thanks,
Ulrich

Re: OpenDoPE templating on Android

PostPosted: Thu Feb 19, 2015 7:08 am
by jason
The good news is that we have both XSLT and non-XSLT implementations for BindingHandler.applyBindings
(although the non-XSLT implementation doesn't quite have feature parity - from memory, importing XHTML and Flat OPC haven't been ported to that implementation).

OpenDoPEIntegrity and RemovalHandler steps both use XSLT at the moment, but I'd like to do a non XSLT implementation of these...