Hi all, I wrote XSLT 2.0 filters that works fine in LibreOffice 3.3.4 but doesn't work in 3.4.3 version. It's because between these two verions, a libxslt implementation of XSLTFilter has been added and set to default instead of java-saxon implementation. And libxslt doesn't support XSLT 2.0 I found a way to use other implementation (old java-saon) than defaut libxslt in the following changelog : 2011-02-04 Peter Jentsch <pjotr@guineapics.de> [cd9e87a248022a6a5b2f8fcd6dc5fca7432b7b38] Update of the libxslt based xsltfilter implementation. * Uses the sax document handler adapter * Uses libxslt by default * Tries to evaluate the 2nd userdata parameter of the filter configuration as the name of the transformation service to use. This should allow extension authors to provide their own transformer implementation (which then could use the old java based transformation service which in turn uses saxon and could provide xslt 2.0 for the TEI people for example). After reading code of XSLTFilter.cxx of 3.4.3 version, I assume that the 2nd userdata parameter of the filter configuration is defined in the TypeDetection.xcu file of a XSLT Filter package. And more precisly after the first semi-colon of the text contained in the node/oor:component-data/node[@oor:name='Filters']/node[@oor:name='Test XSLT 2.0 filter']/prop[@oor:name="Data"]/value. So I tried this : Create a new import xml filter Load my xslt Export this filter as a package Update the TypeDetection.xcu in the package to set the java implementation. I thougt that the good value for java implementation is "com.sun.star.comp.JAXTHelper" as in 3.3.4 version of LibreOffice. But it doesn't work. Then I tried these differents values : com.sun.star.comp.JAXTHelper com.sun.star.comp.documentconversion.XSLTFilter com.sun.star.comp.documentconversion.XSLTransformer Butnothing worked. I join these differents test packages and the input test xml file. Doesanyone knowthe solution ? Thanks
Attachment:
Test-xslt-filter-standard.jar
Description: application/java-archive
Attachment:
Test-xslt-filter-JAXTHelper.jar
Description: application/java-archive
Attachment:
Test-xslt-filter-XSLTFilter.jar
Description: application/java-archive
Attachment:
Test-xslt-filter-XSLTransformer.jar
Description: application/java-archive
<?xml version="1.0" encoding="UTF-8"?> <root/>