[Libreoffice] [PUSHED] Re: [Fwd: [PATCH] new De-Java-ised flat XML export]
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 flat-xml.fodt Description: application/vnd.oasis.opendocument.text ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [PUSHED] Re: [Fwd: [PATCH] new De-Java-ised flat XML export]
Ouch! I forgot to include the changed configuration files for the office2003 filters. I'll send that missing patch as soon as I'm home. Sorry, Peter Am 03.02.2011 um 17:54 schrieb Jan Holesovsky ke...@suse.cz: 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 flat-xml.fodt ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] [Pushed] Re: [Fwd: [PATCH] new De-Java-ised flat XML export]
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 pj...@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=FlagsvalueIMPORT EXPORT ALIEN 3RDPARTYFILTER/value/prop prop oor:name=UIComponent/ prop oor:name=FilterServicevaluecom.sun.star.comp.Writer.XmlFilterAdaptor/value/prop -prop oor:name=UserDatavalue 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=UserDatavalue 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=FileFormatVersionvalue0/value/prop prop oor:name=Typevaluecalc_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 ---