Menu

Transformation to WordML?

Anonymous
2017-02-11
2017-02-12
  • Anonymous

    Anonymous - 2017-02-11

    Hi,

    I assume that it is not possible to transform DocBook(5) to WordML with DAPS?

    And just in case, it is: How?

    Best regards

     
    • Thomas Schraitle

      Hi,

      I assume that it is not possible to transform DocBook(5) to WordML with DAPS?

      No, this is not possible with DAPS, at least not directly.

      However, you don't need DAPS for this. You only need a XSLT processor and the right stylesheets. The upstream DocBook XSL stylesheets has already this include. They are called "roundtrip" stylesheets. You can use them to transform your DocBook document into WordML, Apple Pages, or LibreOffice ODF.

      I'm not sure how good they are, I haven't used them. Probably you need to fine-tune them and adapt them to your needs. That depends on your DocBook source and what you want to achieve.

      Another possible option would be to try LibreOffice. It can import DocBook XML files directly. Internally it uses also a XSLT transformation. Depending on how "difficult" your code is, the result will be more or less useable. If the result is good, you can save it as WordML.

      Hope that helps.

      Tom

       
  • Anonymous

    Anonymous - 2017-02-12

    Hi Tom,

    thanks. Too bad... I thought I could kill two birds with one stone.

    My DocBook sources are going to be transformed into both PDF and WordML via a Jenkins cron job.
    So it would be nice to use just one tool. And LibreOffice is no option.

    I'll try the DocBook standard tools.

    Best regards

     
    • Thomas Schraitle

      Hi,

      I thought I could kill two birds with one stone.

      Poor birds. ;-) ;-)

      My DocBook sources are going to be transformed into both PDF and WordML via a Jenkins cron job.

      Just for curiosity: Why do you need WordML?

      Does it have to be WordML or can it be imported as HTML? I don't know Word that much, but I assume, both can be imported.

      The reason why I suggest to try it with HTML too is that the stylesheets for HTML output is probably much better maintained than the stylesheets for WordML (although I never tried it the latter).

      If you want to (or have to) really use WordML you should adapt them to your needs with a "customization layer". You can read the details in my book, see http://doccookbook.sourceforge.net/html/en/dbc.common.dbcustomize.html

      Feel free to ask further questions.

      Good luck,
      Tom

       
  • Anonymous

    Anonymous - 2017-02-12

    Hi Tom,

    the bird thingie... LEO was my friend. Zwei Fliegen mit einer Klappe, und so... ;-)

    My customer requested both PDF and Word. So I ordered a transformation for both from an XML software company. I'm a technical author, not an XSL "programmer".

    And DAPS seemed to be handy at first sight, but with the complete XML transformation files the provider delivered now (and the fact that DAPS does not support WordML), I think I skip DAPS for this project.

    Maybe there is another chance using DAPS in a future project.

    Best regards

     
    • Thomas Schraitle

      Hi,

      the bird thingie... LEO was my friend. Zwei Fliegen mit einer Klappe, und so... ;-)

      Hehe, I know German. :))

      My customer requested both PDF and Word.

      I see.

      You can use daps for PDF, but for Word you need to do it manually.

      Maybe there is another chance using DAPS in a future project.

      Sure, hope this discussion was useful for you anyway. :) Wish you good luck!

      Best regards,
      Tom

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.