* Andreas Schl�ns <[EMAIL PROTECTED]> [050405 08:48]:
> Hello Pierre-Andre!

Hello Andreas,

Firstly, thank-you for your answer which enlight my day ;-). In order to
try to help the following developpers trying to figure out how all this
work, I will try to "over-explain" the facts.

> 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 .

Interesting...
 
> 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 .-)

This was almost working. Only small modifications had to be done.

> But at least export/import using the same xslt dialog should work.

Yes, it almost work, except that, the application the filter is intended
for is not recognized in OOo2.0. For example, if my filter is designed
for calc, I am not able to tell the "XML Filter Dialog" that this is the
case.

I suppose that this is partly due to the new file format in OOo2.0 (odt,
ods...). In OOo1.1, the name of a component is used to tell which
application (writer, calc...) the filter is related, for example :

writer (.sxw) : com.sun.star.text.TextDocument
calc (.sxc) : com.sun.star.sheet.SpreadsheetDocument

As in the example below :

<node oor:name="Filters">
<node oor:name="my_filter">
   
   <prop oor:name="UIName" oor:type="xs:string">
        <value xml:lang="en-US">My filter (Calc)</value>
   </prop>
              
   <prop oor:name="Data" oor:type="xs:string">
        <value>
           0,
           SimpleXML,
           com.sun.star.sheet.SpreadsheetDocument,
           com.sun.star.comp.Writer.XmlFilterAdaptor,
           524289
           ...
   </prop>
</node>
</node>

But by now, there are two types of file per application :

writer : .sxw and .odt
calc : .sxc and .ods

And I suppose that the "XML Filter Dialog" is confused and when
specifying a "com.sun.star.sheet.SpreadsheetDocument" does not know
which one to choose : is the resulting file produced by the XSLT filter
an file formated in .sxw or in ods ?

So, is there a new kind of component like :
"com.sun.star.sheet.ODSSpreadsheetDocument" or
"com.sun.star.sheet.SXWSpreadsheetDocument" ?

Is there a solution ? Should I wait some more time before trying to make
it work in order to let time for the doc to become available ?

> 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.

Ok !

> 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.

Waiting for those explanation :-)

> Regards
> Andreas

Best Regards,
Pierre-Andre
-- 
"I have always wished for my computer to be as easy to use as my
telephone; my wish has come true because I can no longer figure out how
to use my telephone" - Bjarne Stroustrup -

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

Reply via email to