Hello Barry:

I think you could use either of the following approaches...:

1) use ParagraphUserDefinedAttributes
<http://api.openoffice.org/docs/common/ref/com/sun/star/style/ParagraphProperties.html#ParaUserDefinedAttributes>
these let you store (invisibly) custom attributes at the paragraph
style level....

for example if you had to markup text in openoffice with an identifier
like <identifier id="i0001">  </identifier> you could store this i0001
value as a paragraph attribute for the specified paragraph in OO. The
attributes appear in styles.xml (and not content.xml) so you will have
to use XSLT to merge these attributes into your XML tags for the
required text fragment....

(Note that, I tried using UserDefinedAttributes a while back, but
could never get them to work as the documentation said....)

2) You could maybe encode the attributes into a openoffice text link,
by encoding all your attributes as plain text identifiers in the link
something like  <text:link ref="id~i0001~name~alpha beta"...> and so
on... then when you transform the OO document you could parse the link
and convert that to the XML that you want....

thanks

Ashok




On 3/5/07, Barry <[EMAIL PROTECTED]> wrote:
Hi,

Is it possible to add my own tags to an OpenDocument fie, in their own
namespace, and have OpenOffice preserve those tags across file edits?

I want to use this to include markup within an OpenDocument file and process it
with an external macro processor. The technique works really well, we're using
Jakarta Jelly as the macro processor, but subsequent changes to the OpenDocument
file remove all the Jelly tags.

Any ideas?

Thanks and Regards,

Barry


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



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

Reply via email to