Re: [dev-biblio] generic structured fields, citations

2006-10-19 Thread David Wilson
Jakob 

I have been reading the Extensions project documentation 
http://wiki.services.openoffice.org/wiki/Extensions .

I get the impression that what you are trying to should be possible. It might 
be that you need to add two OObasic macros - one that initialise/opens your 
file at document open and one that closes/saves your document at document 
close ?

It might be worth putting you question to the extensions list.

David

On Thursday 19 October 2006 10:42 pm, Jakob Lechner wrote:
> Hello,
>
> On Thu, 2006-09-21 at 08:53 -0400, Bruce D'Arcus wrote:
> > See the archive I have attached to the message archived at this link.
> >
> >  >l>
> >
> > It reflects how I've been thinking about storing the metadata. So
> > basically there are domain or feature specific metadata files that get
> > registered in the manifest with a "text/rdf+xml" mimetype, and I
> > imagine specific functionality could be responsible for different
> > chunks of metadata (though because a common model, they could be
> > linked).
> >
> > Let me know if you have any thoughts about that, and about the field
> > to link to it.
>
> Looks good, that's quite similar how we are planning to include metadata
> in odt archives.
>
> I have been working on another project but now I'll
> be concentrating on the metadata project again. Actually I
> have to implement some sort of prototype as fast as possible
> because we need it for a presentation.
>
> As discussed earlier we want to include xml metadata in
> odt archives and implement fields that can read and modify
> the content of a given tag of the xml structure.
> So the field actually needs a reference to the xml file
> it is linked to and a reference to a tag within that xml file
> (this reference could be a xpath expression).
>
> The field could stored in the content.xml file like this:
>  xpath="/contacts[0]/surname" />
>
> The first thing I've tried was to store xml metadata files into a
> odt zip archive: I have created a new folder in the archive and then
> I've included the xml files that contain metadata in this folder.
> Finally I've added entries in the manifest.xml file for the newly
> created folder and for each one of the xml files:
>
>  path="customXml/"/>
>  manifest:fullpath="customXml/item1.xml"/>
>
> I was able to open the odt file in Writer but when I added a word in the
> document and stored it again, our xml files and the entries in the
> manifest file were gone.
>
> I guess the reason for this is that Openoffice only includes files in
> the archive that are referenced in the document.
>
> So I guess it will be necessary to adapt the routine in Openoffice that
> stores text documents. Could someone tell me where to find the code that
> loads/stores textdocuments from/to odt archives? I have read something
> about the XLoadable and XStoreable interfaces but I haven't found the
> implementation for Writer documents yet.
>
>
> Please tell me if you have any further ideas or remarks about what I
> have to take care about.
>
>
>
> Best regards

-- 
---
David N. Wilson
Co-Project Lead for the Bibliographic 
OpenOffice Project
http://bibliographic.openoffice.org

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



Re: [dev-biblio] Re: [sw-discussion] Re: [dev-biblio] Re: [sw-discussion] generic structured fields, citations

2006-10-19 Thread Bruce D'Arcus

On 10/19/06, Jakob Lechner <[EMAIL PROTECTED]> wrote:


As discussed earlier we want to include xml metadata in
odt archives and implement fields that can read and modify
the content of a given tag of the xml structure.
So the field actually needs a reference to the xml file
it is linked to and a reference to a tag within that xml file
(this reference could be a xpath expression).


I'm not so sure I agree about the "should be an xpath expression" or
how you've precisely framed this (accessing the property directly).


The field could stored in the content.xml file like this:



See some brainstorming ideas I've posted:



Bruce

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



[dev-biblio] Re: [sw-discussion] Re: [dev-biblio] Re: [sw-discussion] generic structured fields, citations

2006-10-19 Thread Jakob Lechner

Hello,

On Thu, 2006-09-21 at 08:53 -0400, Bruce D'Arcus wrote:
> See the archive I have attached to the message archived at this link.
> 
> 
> 
> It reflects how I've been thinking about storing the metadata. So
> basically there are domain or feature specific metadata files that get
> registered in the manifest with a "text/rdf+xml" mimetype, and I
> imagine specific functionality could be responsible for different
> chunks of metadata (though because a common model, they could be
> linked).
> 
> Let me know if you have any thoughts about that, and about the field
> to link to it.

Looks good, that's quite similar how we are planning to include metadata
in odt archives.

I have been working on another project but now I'll
be concentrating on the metadata project again. Actually I
have to implement some sort of prototype as fast as possible
because we need it for a presentation.

As discussed earlier we want to include xml metadata in
odt archives and implement fields that can read and modify
the content of a given tag of the xml structure.
So the field actually needs a reference to the xml file
it is linked to and a reference to a tag within that xml file
(this reference could be a xpath expression).

The field could stored in the content.xml file like this:


The first thing I've tried was to store xml metadata files into a
odt zip archive: I have created a new folder in the archive and then 
I've included the xml files that contain metadata in this folder.
Finally I've added entries in the manifest.xml file for the newly
created folder and for each one of the xml files:




I was able to open the odt file in Writer but when I added a word in the
document and stored it again, our xml files and the entries in the
manifest file were gone.

I guess the reason for this is that Openoffice only includes files in
the archive that are referenced in the document.

So I guess it will be necessary to adapt the routine in Openoffice that
stores text documents. Could someone tell me where to find the code that
loads/stores textdocuments from/to odt archives? I have read something
about the XLoadable and XStoreable interfaces but I haven't found the
implementation for Writer documents yet.


Please tell me if you have any further ideas or remarks about what I
have to take care about.



Best regards

-- 
Jakob Lechner
Research & Development
Fabalabs Software GmbH
Honauerstraße 4
A-4020 Linz
Tel.: [+43] (70) 60 61 62
Fax: [+43] (70) 60 61 62-609
E-Mail: [EMAIL PROTECTED]
Web: http://www.fabalabs.org

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