Apache OpenOffice (AOO) Bugzilla – Issue 65457
WordML import should accept content of elements of not word namespaces
Last modified: 2007-05-25 13:39:33 UTC
As word permits to mix up the WordML with elements from other namespaces these should be ignored by the import style sheets. this could be done by substitution of all <xsl:aplytemplates select=" ... with templates matching the not desired elements as <xsl:template match="w:*"/> and maybe one or the other new "mode"
Created attachment 36521 [details] Word document with embedded foreign elements
-> SUS
SUS->Stefan: Hi Stefan, is there a chance to get a patch for this as well. I inherited this filter, but have unfortunately other higher prioritized tasks, which keep me from fixing this. Any help is welcome. Many thanks in advance, Svante
Hi Svante, unfortunately this is not just a little patch ... _all_ <xsl:apply-templates select=" ... " /> elements will have to be replaced by a dispatch template. but I will do a try :-) Greetings Stefan
Hi Stefan, That are great news for me! Therefore I gave you back the issue and postponed the CWS till 7th June. As you will have to do a lot of search & replace, you might as well simply sent me (or better attach) a ZIP with your latest stylesheet collection and I will do a codereview by looking at the diffs. By this neither of us have to worry about the patches. Many thanks for your help. I am impressed by your commitment. Regards, Svante
Created attachment 37158 [details] patch unfortunately includes other fixes
Created attachment 37159 [details] here komplete stylesheets for all my issues
hi svante for me and my application it works fine now. but unfortunately i dont have any test suite to verify all possible side effekts. regards stefan
Hi Stefan, we have a automatic testing tool to compare the documents after loading into the Office. Basically the tool load on document after the other into the Office, prints them in a postscript file and transforms the file into a graphic. If you do this process twice, once for the earlier used import filter and afterwards for the one for the export filter, it is possible to compare the graphics for differences. As you did fixes, there will be some changes for sure. But as this tool is not well documented in the public yet and Sun might have more test documents (which we are not able to make public as they are partly customer documents), I will start to run this tool on your filter. PS: As you are the only developer on the CWS and to avoid confusions with the patches, would you be so kind to bundle the final version of your import & export filter in a ZIP to this issue? In the end, it would ease things on my side. Kind regards, Svante
hi svante, my atachment (wordml.zip) from june 14th contains all alterations made up to the moment. there is still very much to be done especially header and footer treatment but ATM ... no way. who knows ... maybe in september I´ll be back on this. best regards stefan
sus->stephan: Excellent, thank-you. Therefore I going to trigger the QA for automated GUI testing. Regards, Svante
This patch can be reproduced upon the attached document. Therefore it is accepted. NOTE: This issue allows only to import the content of those documents, it does not preserve those elements.
patched checked in and tested..
seen good in cws wordml02 set to verified
set target to 2.1
Closing long ago verified issues