[Libreoffice] [PATCH] De-Java-ise flat XML export

Peter Jentsch pjotr at guineapics.de
Mon Jan 3 12:06:08 PST 2011


Hi Jan, 

I'm attaching a patch I somehow managed to patiently pull out of git :-)

As I'm new to C++, libxslt, git and a few other things involved in
creating the patch I feel it must be full of warts and cause random
crashes, but it seems to work and might be useful anyway.

Basically, the patch provides an alternative service implementation
to be used by XSLTFilter.cxx. Use of the libxslt implementation can be
triggered by adding "libxslt" as second parameter to the "UserData"
configuration of an xslt filter. This second parameter is currently
unused for xslt filters. 

To completely remove the java dependency for xslt filters, the
xsltvalidation service would also need to be replaced by an
implementation based on libxslt. 

Also, the Office 2003 XML export filters use a saxon extension
implemented in Java, which needs to be replaced by a libxslt extension
if Office 2003 XML export should be supported without Java, too. 

The flat xml export could be implemented as a pure C++ xml Filter
indendendently of the xslt filter, as proposed in the SDK examples, I
suppose, and I'd like to do that next. 

I personally like the idea to make the implementation to use
configurable, instead of completely removing the Java based xslt filter
implementation. 

Cheers, 

Peter



 
Am Donnerstag, den 30.12.2010, 02:07 +0100 schrieb Jan Holesovsky:
> Hi Peter,
> 
> On 2010-12-29 at 14:29 +0100, Peter Jentsch wrote:
> 
> > I've gotten so far as to have a working implementation of XSLTFilter
> > which uses libxml2/libxslt to do the XSL transformation. It's still
> > missing some details like passing parameters to the xslt script, but it
> > works for the flat xml export and for xhtml export as well. Using this
> > implementation would remove the java dependency from xslt filter
> > processing,
> 
> Wow, cool! :-)  Can you please post the patch here, so that we can have
> a look?  This sounds great.
> 
> Regards,
> Kendy
> 
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
> 




More information about the LibreOffice mailing list