Apache OpenOffice (AOO) Bugzilla – Issue 56451
XSLT filters not reloaded
Last modified: 2013-02-07 22:05:09 UTC
When an XSLT filter file is edited, it is not reloaded in OOo, apparently never again or at least too lazily. I understood from other issues that the XSLTs are cached, but it seems too permanently. OOo 1.1.5 seems to reload the filters properly during export, OOo 2.0 doesn't. It's annoying to have to restart OOo every time you edit a filter; it makes filter testing a pain.
Reporter: I have a running OOo 2.0 and have modified /$OOo20InstallationDirectory/share/xslt/docbook/docbooktosoffheadings.xsl and exchanged the <meta:generator> from StarOffice 6 to OpenOffice.org 2.0. Then I used the Test XSLT functionality in the Tools -> XML Filter Settings dialog to import a simple file. And voilá the generator name has been changed. So for me there is no "caching problem".
Steps to reproduce the problem: 1. Create a new Writer document 2. Use Tools - XML Filter Settings - Test Filter - Current document with for example XHTML Writer export filter 3. Close the XML Filter dialogs 4. Edit the file share/xslt/export/xhtml/header.xsl, for example change the text in tag '<xsl:attribute name="content">StarOffice/OpenOffice.org...' to something else. 5. Use the Tools - ... - Test Filter - Current document again as in Step 2 6. Observe that the string is still unchanged: '<meta name="generator" content="StarOffice/OpenOffice.org...' 7. Quit and restart Writer 8. Do Step 2/5 again. So, obviously the export filter was not reloaded after editing it, but only after restarting OOo. Please do not mark this as "RESOLVED", as it is not.
Forgot to mention that my system details are: Red Hat 9, JRE 1.5.0_05. The problem still occurs in 680m137.
Accepted. Very good description. I will ned to make some regression tests in 1.1.x and will address that issue. Thank you!
JSI->LO/MMP: The problem we need to resolve is the possibility to reload the stylesheets in the "XML Filter Settings dialog". In the specification we have already written that "Another reason for including the user interface into StarOffice itself is that even existing XSLT stylesheet might require small adoptions." (line 87; http://ui.openoffice.org/proposals/XMLFilterSpec.sxw). Without the enhancement to reload the stylesheets we won't meet the needs of the customers. The problem also existis in OOo 1.1.x
xmlfilter for you
Not able to look into it or fix it in OOo 3.0 to overload, change target to OOo 3.x! Is anybody able to provide me with a patch for this problem? Thanks in advance, Svante