Giuseppe Castagno wrote: > Mathias Bauer wrote: >> Giuseppe Castagno wrote: >> >>> Hi Mathias, >>> >>> Mathias Bauer wrote: >>>> Giuseppe Castagno wrote: >>>> >>>>> Now my questions, keeping in mind that at a certain time I need to >>>>> access the "META-INF" substorage to manipulate a custom file (read and >>>>> write). >>>> Why do you need access to the META-INF? Everything in the manifest >>>> should be accessed via properties of the storage elements that the >>>> manifest describes. Can you explain what you want to achieve? >>> Sure. >>> >>> I'm writing an extension in Java to sign the ODF document according to >>> an Italian standard. >>> Something that should be implemented specifically. >>> >>> The reason I need to access the META-INF substorage is to add there the >>> specific signature stream, according to the work in progress at OASIS >>> Office on ODF 1.2. ([1] and descendant discussions) >>> >>> It's still in the planning state, e.g. proof of concept, but will lurk >>> here [2]. >>> >>> It's just started, so the svn there is still empty... >> >> Adding a stream to the manifest is easy even without direct access to >> it. If a stream is inserted and the stream object has a MediaType or >> other supported properties the Storage implementation will write them >> for you. >> >> Can you explain what kind of stream attributes you want to store in the >> manifest? If some are missing now, maybe we can add them to the list of >> supported properties of the Storage implementation. > > The new stream in substorage META-INF will be a new xml file, named for > example xadessignature.xml. > But I'm not sure I understand you.
Ah, I mis-understood your intention. I thought you wanted to add the stream to the manifest.xml, but in fact you want to add a stream to the substorage. Sorry, my bad. Of course you can access the META-INF *folder*. Did you have a look on the xmlsecurity modules' code, e.g. http://svn.services.openoffice.org/opengrok/xref/DEV300_m45/xmlsecurity/source/helper/documentsignaturehelper.cxx 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...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org