Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 36945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:28:23+00:00 2026-05-10T14:28:23+00:00

I am writing a basic word processing application and am trying to settle on

  • 0

I am writing a basic word processing application and am trying to settle on a native ‘internal’ format, the one that my code parses in order to render to the screen. I’d like this to be XML so that I can, in the future, just write XSLT to convert it to ODF or XHTML or whatever.

When searching for existing standards to use, the only one that looks promising is ODF. But that looks like massive overkill for what I need. All I need is paragraph tags, font selection, font size & decoration…that’s pretty much it. It would take me a long time to implement even a minimal ODF renderer, and I’m not sure it’s worth the trouble.

Right now I’m thinking of making my own XML format, but that’s not really good practice. Better to use a standard, especially since then I can probably find the XSLTs I might need in the future already written.

Or should I just bite the bullet and implement ODF?

EDIT: Regarding the Answer

I knew about XSL-FO before, but due to the weight of the spec hadn’t really consdiered it. But you’re right, a subset would give me everything I need to work with and room to grow. Thanks so much the reminder.

Plus, by including a rendering library like FOP or RenderX, I get PDF generation for free. Not bad…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:28:23+00:00Added an answer on May 10, 2026 at 2:28 pm

    As you are sure about needing to represent the presentational side of things, it may be worth looking at the XSL-FO W3C Recommendation. This is a full-blown page description language and the (deeply unfashionable) other half of the better-known XSLT.

    Clearly the whole thing is anything but ‘lightwight’, but if you just incorporated a very limited subset – which could even just be (to match your spec of ‘paragraph tags, font selection, font size & decoration’) fo:block and the common font properties, something like:

    <yourcontainer xmlns:fo='http://www.w3.org/1999/XSL/Format'>     <fo:block font-family='Arial, sans-serif' font-weight='bold'         font-size='16pt'>Example Heading</fo:block>     <fo:block font-family='Times, serif'         font-size='12pt'>Paragraph text here etc etc...</fo:block> </yourcontainer> 

    This would perhaps have a few advantages over just rolling your own. There’s an open specification to work from, and all that implies. It reuses CSS properties as XML attributes (in a similar manner to SVG), so many of the formatting details will seem somewhat familiar. You’d have an upgrade path if you later decided that, say, intelligent paging was a must-have feature – including more sections of the spec as they become relevant to your application.

    There’s one other thing you might get from investigating XSL-FO – seeing how even just-doing-paragraphs-and-fonts can be horrendously complicated. Trying to do text layout and line breaking ‘The Right Way’ for various different languages and use cases seems very daunting to me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer My first step would be to find a user who… May 11, 2026 at 11:53 pm
  • Editorial Team
    Editorial Team added an answer You may have to specify the amount of spaces to… May 11, 2026 at 11:53 pm
  • Editorial Team
    Editorial Team added an answer I got it to work. I was able to get… May 11, 2026 at 11:53 pm

Related Questions

I am writing an architecture and design document for software development at our company,
After reading through many of the questions here about DB schema migration and versions,
I am writing a program which has two panes (via CSplitter ), however I
I am writing a quote-matching program in which two Abstract Factory Patterns are required,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.