Hello,
im developing a small Java Modul who creates documents based on an open office writer document.
i want to add placeholders in form of xml-tags, eg <placeholder>this is the repeatable text</placeholder> in my odt-document. if i save this, the xml-filter of open office removes this form for some good reasons.
what is the best way to add xml-attributes into an odt-document. ive readed something about it, this elements are called as aliens, cause i dont find a way to add it into the document.
best regards
Adding XML Tags
Re: Adding XML Tags
I don't think there are too many xml developers or ODF wizards available. You might try dev-at-openoffice.org.
My only thought is that you should be able to extend the format (it is the eXtensible Markup Language after all), but I don't know what the best approach with something like ODF is.
You could also use the existing style tags, i.e., assign a particular style to be your tag. The style need not have any effect on the presentation, but your processor can pick them out based on the style name.
That seems a bit of a hack, but it would not require any extensions.
My only thought is that you should be able to extend the format (it is the eXtensible Markup Language after all), but I don't know what the best approach with something like ODF is.
You could also use the existing style tags, i.e., assign a particular style to be your tag. The style need not have any effect on the presentation, but your processor can pick them out based on the style name.
That seems a bit of a hack, but it would not require any extensions.
AOO4/LO5 • Linux • Fedora 23
Re: Adding XML Tags
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice