Hello Pierre-Andre!
Hello,
I wrote an xslt filter for OOo2.0, and have some problems to package it.
Under the previous versions of OpenOffice.org, I packaged the filter
as a "jar" file, so that I could import it in OpenOffice.org using the
box "Tools > Xml Filter Settings...", and then the "Open Package..." dialog.
In OOo1.1, the package (my_filter.jar) looks like that :
- TypeDetection.xcu - META-INF/manifest.xml - My_Filter/MyFilter.xsl - mimetype
And it works fine. But for OOo2.0, I read an article explaining that the file "TypeDetection.xcu" is deprecated and that there is a new format :
You are right: the TypeDetection.xcu is deprecated now ... but that means: the file "officeinst/share/registry/data/org/openoffice/Office/TypeDetection.xcu" is deprecated. It will be supported for a while readonly.
The file "TypeDetection.xcu" of the xslt package you have isnt the real TypeDetection.xcu ! It uses the same name ... the same format ... but is written and readed by the xslt filter dialog only. So it's a complete
different mechanism. If it does not work - it's a problem of this dialog .
The reason for this confusing reusing of file format and name:
There exists no export function for our configuration in general.
You can import external schema and configuration files only e.g. by using the office package manager. So the xslt dialog was designed to
make it's own import / export. Using the same name and format was indended by the idea, to be able to import these files by the package manager too. I dont know if that realy worked before .-)
But at least export/import using the same xslt dialog should work.
Excepting the bug #i35892#. New imported or created xslt filters are recognized only after restarting the office. The problem is a broken
notification about changed caches.
http://tinyurl.com/4zlnl
For now, when using the package for OOo1.1, it almost works, except that it does not recognise the application the filter is attached to ("application" when editing the filter).
Then, I tryed to take as an example the new SDK (OpenOffice.org1.9.m77_SDK/examples/DevelopersGuide/OfficeDev/FilterDevelopment) But I didn't manage to modify those files to make them work in my example.
I would like to find information about the new format and how I could
manage that. Does anybody have a clue, or better an example of such a
filter ?
The developers guide does not describe the file format of the TypeDetection.xml. It describe it's content (means the properties of types/filters etcpp). And these properties are the same then before.
Further the developers guide was not updated to clarify the details. e.g. changed configuration pathes. I will do that ASAP.
Thank-you, Pierre-Andre
Regards Andreas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
