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

Is this possible ? and how ? I have found many coding examples which use
export filters , i just want to use the import and i couln;t find anything
relevant\

Thanx again.. I would so much like to see the blog that u mentioned ,if you
could  provide me the link.



On Thu, Sep 25, 2008 at 7:56 PM, Mathias Bauer <[EMAIL PROTECTED]> wrote:

> Hi,
>
> leyki leykiou wrote:
>
> > Hello everyone, i am new here and i have a question to ask which might be
> a
> > little complicated.
> > What i want to do is to develop a component such as a button in open
> office
> > which , when pressed, imports an xml file which can be selected by a file
> > dialog and apply an already installed xslt import filter -which basically
> > transforms the XML file and fits its data to a simple table-.So the
> result
> > is a report-like .odt file with data provided by my xml file.
>
> So you want to convert an xml file to an odt file using xslt? If you are
> fine with using OOo3 (that hopefully will be released soon) there is a
> simple way to achieve that using our extension feature. I was just going
> to provide some documentation in the wiki and write a blog about it, so
> if you could wait for a few days ...
>
> Once you have your transformation in place as a filter component you can
> import the xml file via API with or without a file dialog.
>
> > (this is the final goal,for the moment i want to just do it from command
> > line java program)
> >
> > I am stuck at how can i use the api to load a filter package i installed
> > before opening the document,so that when the page opens you see the .odt
> > file with the table and my data..
> > i am able to do so from openoffice interface , the traditional way, but
> how
> > can i do it programmatically..?
> How did you install the filter package? In the "traditional" way for our
> xslt based filters, as a jar file?
>
> > For the moment i open a file from java using
> > the api but i dont find any info on how to apply a filter prior to
> opening
> > it.
>
> Sorry, I don't understand this. How do you open your file from api so
> that no filter is applied? Do you mean that the xml file is imported as
> a text file?
>
> 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 "[EMAIL PROTECTED]".
> I use it for the OOo lists and only rarely read other mails sent to it.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to