Hello,

I know this issue is old but I have the same problem like the thread
starter!

Is there now a way to import a XML File to Open Office Writer via XSLT?

I have installed a XML Filter in my Open Office. So manually in open office
I can call the Filter, select a XML File and import it to open office..a
complet new Writer file will be created.

How I can use this import via API? At the moment I use the Java based UNO
API.

Can anyone help me and provide ma a solution how to use xslt for importing
XML Files to Open office?

At the moment I use a Workaround. I unzip the content.xml, edit it and pack
it back to the odt file. But this is not the best way. Thats why I'm
searching for the import solution to do this via the UNO API.

I hope for help!

Greetings

Dog

Mathias Bauer wrote:
> 
> Hi,
> 
> leyki leykiou wrote:
> 
>> Firstly i d like to thank you for your quick response..Starting from the
>> last what i meant was that i am able to open a file from the API using
>> the
>> loadComponentFromURL method,but i was looking for a method of the API to
>> pass my XSLT filter package as a parameter ,lets say, so that the
>> transformation is applied prior to opening the file and when my file
>> loads
>> it's and odt file , not an xml that it was in the beginning..
> 
> This is an interesting idea but unfortunately currently not supported.
> As the name of the xslt file basically is nothing more than some "user
> data" for the filter adaptor I think that changing the adaptor to accept
> them as arguments instead of configuration data could be an interesting
> thing to think about.
> 
> For the moment you must install you xslt as a filter. I'm currently
> updating the DevGuide to describe how to do that (currently the DevGuid
> only describers how to install filters that are UNO components). Each
> filter can be part of the OOo build or an OOo extension (for xslt that
> will work only in the upcoming 3.0 version, not in 2.x).
> 
> Once the documentation is up to date, I will announce that in
> http://blogs.sun.com/GullFOSS. I will also try to provide a sample
> extension to show how you can deploy an xslt into Ooo easily.
> 
> A rough estimation for that is end of the week.
> 
> Regards,
> Mathias
> 
> -- 
> Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
> OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
> Please don't reply to "nospamfor...@gmx.de".
> I use it for the OOo lists and only rarely read other mails sent to it.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
> For additional commands, e-mail: dev-h...@framework.openoffice.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Java-API-import-filters-tp19650307p24913624.html
Sent from the openoffice - framework dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org

Reply via email to