Charles Vermette wrote: > 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.
Do I understand it correctly: you have a format of your own and you provide a registered import filter for this format that is able to import the format to the OOo writer format? > 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. Do you provide a deep detection component? Can you show us your typedetection configuration for your filter (both type and filter part)? Is the file loaded by your filter if you select it in the filter dialog? Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
