Niklas Nebel schrieb:
> Tom Schindl wrote:
>> thanks for your reply I think the easiest soltion would use the
>> attribute way described in the last mail I sent. Is it allowed to have
>> custom attributes in ODF?
>
> Do you just want to load the file, ignoring the extra content, or do you
> need to preserve your markers? Foreign elements and attributes are
> ignored in most places. In a few places, like
> style:table-cell-properties in a cell style, foreign attributes are read
> and preserved. In the case of a cell style, they are then included when
> the cell is copied or moved, and written again in the cell's style when
> the file is saved.
>
> Niklas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
Yeah I would need to preserve those markers take the following:
1) I design a reports in OOCalc
2) I open the Document in my vi, notepad, ... and add my special tags
like e.g.
<table:table-row table:style-name="ro1" ftm:list="persons as person">
<table:table-cell office:value-type="string">
<text:p>${person.givenname}</text:p>
</table:table-cell>
<table:table-cell office:value-type="string">
<text:p>${person.surname}</text:p>
</table:table-cell>
</table:table-row>
In the template engine which is gets passed variable named persons (in
Java an Array of Person-Objects) now the template loops over this
foreach person and the resulting document (plain ODF-File) with say 3
additional rows holding the person information.
(Maybe I one day you this is done directly in OpenOffice with an
Extension or something else) => Hey OpenOffice get's a reporting engine
with one of the greatest visual report designer people ever saw ;-)
3) I want to change the design of the document e.g. adding a header and
footer. I want to open the file add change add the header and footer and
my information should have been preserved.
>From your mail i got the feeling that this is not possible at the moment
in OpenOffice. Wouldn't it be a simple to restore this non-odf values
e.g. as strings next to the object and insert them back when saving the
object (I know this is not so easy but you may get my point :-).
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]