Hi Kay, 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?
--------------8<-------------- > <office:document-content ... xmlns:ftm="http://www.freemarker.org/XML"> > ... > <table:table table:name="Tabelle1" table:style-name="ta1" table:print="false"> > <office:forms form:automatic-focus="false" form:apply-design-mode="false"/> > <table:table-column table:style-name="co1" > table:default-cell-style-name="Default"/> > <table:table-row table:style-name="ro1" ftm:if="x=1"> > <table:table-cell office:value-type="string"> > <text:p>Hallo Welt</text:p> > </table:table-cell> > </table:table-row> > </table:table> > </office:document-content> > ... --------------8<-------------- And yes ftm is the custom part of the whole story (see the namespace declaration in office:document). Tom Kay Ramme - Sun Germany - Hamburg schrieb: > Hi Tom, > > Tom Schindl wrote: >> Hi, >> >> I'm in the situation that I have to create complex reports using >> OpenOffice. I choose to use a templating lib named freemarker > I would expect it to be a pleasure ;-) >> (www.freemarker.org) and leave OpenOffice as the designer. The problem >> is that after I have filled in my freemarker tags I can not open the >> document any more in OpenOffice because it doesn't match the file >> format. No my questions is, is it possible to teach OO new Tags? > AFAIK, the problem is, that after adding your custom tags, your document > is not longer ODF compliant. Basically, OOo does not know anything about > your tags and does not know what to do with them. >> >> Let's take a small sample from ods: >> >>> <office:document-content ... xmlns:ftm="http://www.freemarker.org/XML"> >>> ... >>> <table:table table:name="Tabelle1" table:style-name="ta1" >>> table:print="false"> >>> <office:forms form:automatic-focus="false" >>> form:apply-design-mode="false"/> >>> <table:table-column table:style-name="co1" >>> table:default-cell-style-name="Default"/> >>> <ftm:if test="x=1"> >>> <table:table-row table:style-name="ro1"> >>> <table:table-cell office:value-type="string"> >>> <text:p>Hallo Welt</text:p> >>> </table:table-cell> >>> </table:table-row> >>> </ftm:if> >>> </table:table> >>> </office:document-content> >>> ... >> >> Is it somehow possible to learn OO to accept this new tag? If the above >> case is not possible is the next one possible how? > I am not so much an ODF or XML expert, that I could tell which your tag > is. Is it the <ftm> ? However, the only way I can think of tunneling > it through (assuming that it is what you want to do) is as "content", > e.g. as text or values or somesuch. >> >> Thanks >> >> Tom > Do not know if this helped > > Kay > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
signature.asc
Description: OpenPGP digital signature