I am writing a main word processing application and trying to set my own “internal” format, one that my code analyzes to display on the screen. I would like it to be XML so that in the future I can just write XSLT to convert it to ODF or XHTML or something else.
When looking for existing standards for use, the only one that looks promising is ODF. But it looks like a massive kink for what I need. All I need is paragraph tags, font selection, font size and decoration ... this is pretty much the case. It would take me a long time to implement even minimal ODF rendering, and I'm not sure if it is worth it.
Now I am going to create my own XML format, but this is not a good practice. It’s better to use the standard, especially since then, I can probably find XSLTs that may be needed in the future, already written.
Or should I just bite the bullet and implement ODF?
EDIT: Regarding the answer
I used to know about XSL-FO, but due to the weight of speculation I really could not cope. But you're right, a subset will give me everything I need to work, and a place for growth. Thanks so much for the reminder.
Also, by including a rendering library like FOP or RenderX, I get free PDF creation. Not bad...
source share