Issue 56451 - XSLT filters not reloaded
Summary: XSLT filters not reloaded
Status: CONFIRMED
Alias: None
Product: xml
Classification: Code
Component: external filters (show other issues)
Version: OOo 2.0
Hardware: PC Linux, all
: P3 Trivial with 3 votes (vote)
Target Milestone: 4.x
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2005-10-22 16:58 UTC by magi
Modified: 2013-02-07 22:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description magi 2005-10-22 16:58:32 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.
Comment 1 jogi 2005-11-03 08:10:32 UTC
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".
Comment 2 magi 2005-11-05 07:49:51 UTC
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.
Comment 3 magi 2005-11-05 07:54:24 UTC
Forgot to mention that my system details are: Red Hat 9, JRE 1.5.0_05. The
problem still occurs in 680m137.
Comment 4 jogi 2005-11-07 07:22:43 UTC
Accepted. Very good description. I will ned to make some regression tests in
1.1.x and will address that issue. Thank you!
Comment 5 jogi 2005-11-07 08:04:02 UTC
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
Comment 6 lo 2005-12-13 13:14:03 UTC
xmlfilter for you
Comment 7 svante.schubert 2008-05-30 14:42:12 UTC
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