Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi Kendy, 

attached you find the missing changes to the wordml/excelml filter
configurations to make them use the JAXT transformer service (as long as
the OLE extracting extenstion functions haven't been ported to
libxslt). 

Sorry again for the hassle and thanks for reviewing the patch. 

Bye,

Peter

Am Donnerstag, den 03.02.2011, 17:54 +0100 schrieb Jan Holesovsky:
Hi Peter,

On 2011-02-03 at 00:00 +0100, Jan Holesovsky wrote:

I am just integrating that, fixing few minor things there (we should not
do 'use namespace' in the headers); but looks great overall!  I hope
I'll be able to push later tonight.

I've reviewed your patches, and have them building in my local tree.
I'll do few tests tomorrow, and push :-)

Wrt. the 'using namespace', I fixed those only in the sax header, but
left the private headers (like LibXSLTTransformer.hxx) as they are.  I
also named your implementation of odfflatxml to OdfFlatXml.cxx, and
removed a bit more in scp2.  Please have a look at the git history when
I push this, I hope I did not break your intentions too much ;-)

I pushed everything but libxslt-xsltfilter-impl.patch; the flat odf
export and import works like a charm - it is fast and nice, thank you
for that! :-)  Great stuff.

Unfortunately, the libxslt-xsltfilter-impl.patch changes break the Word
2003 XML export for me (even though you wrote that it should use the old
implementation for that one, right?).  The error I am getting is:

compilation error: file
file:///local/libreoffice/master/install/basis-link/share/xslt/export/wordml/ooo2wordml_draw.xsl 
line 28 element stylesheet
xsl:version: only 1.0 features are supported
xmlXPathCompOpEval: function new not found
XPath error : Unregistered function
xmlXPathCompiledEval: evaluation failed
runtime error: file
file:///local/libreoffice/master/install/basis-link/share/xslt/export/wordml/ooo2wordml_draw.xsl 
line 30 element param
Evaluating global variable  var/param being computed failed
runtime error: file
file:///local/libreoffice/master/install/basis-link/share/xslt/export/wordml/ooo2wordml_draw.xsl 
line 31 element param
Variable 'oleExtractor' has not been declared.
xmlXPathCompOpEval: parameter error
xmlXPathCompiledEval: evaluation failed
runtime error: file
file:///local/libreoffice/master/install/basis-link/share/xslt/export/wordml/ooo2wordml_draw.xsl 
line 31 element param
Evaluating global variable  var/param being computed failed
xmlXPathCompOpEval: function new not found
XPath error : Unregistered function
xmlXPathCompiledEval: evaluation failed
runtime error: file
file:///local/libreoffice/master/install/basis-link/share/xslt/export/wordml/ooo2wordml_draw.xsl 
line 30 element param
Evaluating global variable  var/param being computed failed

Attached the document that triggered that for me (if it is of any
value).

Regards,
Kendy
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

From 11959f6bd7166f7a16c9c507b73da04c2c6eddcc Mon Sep 17 00:00:00 2001
From: Peter Jentsch <pjotr@guineapics.de>
Date: Thu, 3 Feb 2011 21:56:27 +0100
Subject: [PATCH 16/16] add missing config entry for JAXP transformation to word/excel 2003 filters

---
 .../config/fragments/filters/MS_Excel_2003_XML.xcu |    2 +-
 .../config/fragments/filters/MS_Word_2003_XML.xcu  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/filter/source/config/fragments/filters/MS_Excel_2003_XML.xcu 
b/filter/source/config/fragments/filters/MS_Excel_2003_XML.xcu
index d0d2b13..a0bb672 100644
--- a/filter/source/config/fragments/filters/MS_Excel_2003_XML.xcu
+++ b/filter/source/config/fragments/filters/MS_Excel_2003_XML.xcu
@@ -2,7 +2,7 @@
         <prop oor:name="Flags"><value>IMPORT EXPORT ALIEN 3RDPARTYFILTER</value></prop>
         <prop oor:name="UIComponent"/>
         <prop 
oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop>
-        <prop oor:name="UserData"><value 
oor:separator=",">com.sun.star.documentconversion.XSLTFilter,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,../share/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl,../share/xslt/export/spreadsheetml/ooo2spreadsheetml.xsl</value></prop>
+        <prop oor:name="UserData"><value 
oor:separator=",">com.sun.star.documentconversion.XSLTFilter,com.sun.star.comp.JAXTHelper,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,../share/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl,../share/xslt/export/spreadsheetml/ooo2spreadsheetml.xsl</value></prop>
         <prop oor:name="FileFormatVersion"><value>0</value></prop>
         <prop oor:name="Type"><value>calc_MS_Excel_2003_XML</value></prop>
         <prop oor:name="TemplateName"/>
diff --git a/filter/source/config/fragments/filters/MS_Word_2003_XML.xcu 
b/filter/source/config/fragments/filters/MS_Word_2003_XML.xcu
index c953598..4568910 100644
--- a/filter/source/config/fragments/filters/MS_Word_2003_XML.xcu
+++ b/filter/source/config/fragments/filters/MS_Word_2003_XML.xcu
@@ -2,7 +2,7 @@
         <prop oor:name="Flags"><value>IMPORT EXPORT ALIEN 3RDPARTYFILTER</value></prop>
         <prop oor:name="UIComponent"/>
         <prop 
oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop>
-        <prop oor:name="UserData"><value 
oor:separator=",">com.sun.star.documentconversion.XSLTFilter,,com.sun.star.comp.Writer.XMLOasisImporter,com.sun.star.comp.Writer.XMLOasisExporter,../share/xslt/import/wordml/wordml2ooo.xsl,../share/xslt/export/wordml/ooo2wordml.xsl</value></prop>
+        <prop oor:name="UserData"><value 
oor:separator=",">com.sun.star.documentconversion.XSLTFilter,com.sun.star.comp.JAXTHelper,com.sun.star.comp.Writer.XMLOasisImporter,com.sun.star.comp.Writer.XMLOasisExporter,../share/xslt/import/wordml/wordml2ooo.xsl,../share/xslt/export/wordml/ooo2wordml.xsl</value></prop>
         <prop oor:name="FileFormatVersion"><value>0</value></prop>
         <prop oor:name="Type"><value>writer_MS_Word_2003_XML</value></prop>
         <prop oor:name="TemplateName"/>
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.