Hi,

I'm working on a project converting between a locally defined XML file format and OpenOffice Writer format. We use an XSLT filter and the API call storeToURL to store user edited information back to the server. We recently changed the extension of the Writer file we use to a different extension than ".SXW" to help us load different configurations for these generated Writer files to restrict user options. The filter is registered in OpenOffice through Tools->XML Filter Settings.

Until the time we changed the extension, we did not have any problems with this system. However, once we changed the extension to separate our system's documents from normal OpenOffice documents, we began having problems loading the files. If one of our system's files is loaded through the Writer UI, it asks us to choose a filter for the file type. If the files are loaded through an OpenOffice BASIC macro, the macro simply fails. I gather from the documentation online that this is the expected result when a macro tries to load or save a file who's filter is not known. However, if we do not have any filter registered, a deep type detection realizes that the generated document is a Writer document and loads it properly. With the filter registered, it is not able to locate the filter unless the file has the proper ".SXW" extension.

We are using Windows platform and OpenOffice 1.1.4.

My questions are:

1) Is this the intended behavior when a user defined XML filter is registered?
2) Can you suggest another way of transforming the content back to the server format on the client side? For example, could we load and use our conversion XSLT on the fly, so we don't need one registered to give to saveToURL? It may be an option to do both the transforming in and out of OpenOffice format on the server, but this would require a lot of rework for us.


Charles Vermette
[EMAIL PROTECTED]
Software Development


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to