Éric Bischoff schrieb: > Le Jeudi 29 Juin 2006 16:18, Yeatts, Garnett W. CONTR J9C329 a écrit : >> Most of the foreign elements and markers are lost when the file is >> saved. I am also interested in adding some custom attributes or >> information to ODF files. >> >> Is there a recommended way of adding more information to an ODF document >> using the existing schema that would be persisted through saving in OO? > > Only for metadata, as far as I know: > > ============================ > User-defined metadata is a more generic mechanism which specifies a triplet > of > name, type, and value. Supporting applications can present these value to the > user, making use of the supplied data type. The user-defined metadata can be > referenced from within the document through the use of suitable text fields. > > Custom metadata are arbitrary elements inside <office:meta>. Since their > semantics is not defined in this specification, conforming applications in > general cannot process or display this data. Applications should preserve > this data when editing the document. > ============================ > > I don't know whether that would be enough for you. Probably not, from your > table example. >
Well in my idea it it would be really great if you could do something like this: custom-data.xml ------------8<-------------- <office:custom-data id="custom1"> <ftm:if test="x=1" /> </office:custom-data> ------------8<-------------- content.xml ------------8<-------------- <table:table-row table:style-name="ro1" office:custom-id-ref="custom1"> ------------8<-------------- So any element can hold additional data beside the offical ones. Tom
signature.asc
Description: OpenPGP digital signature
