all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thomas Redelberger <redetho@gmx.de>
To: emacs-orgmode@gnu.org
Subject: Re: Org-mode for Docbook and DITA
Date: Fri, 31 May 2024 10:30:18 +0200	[thread overview]
Message-ID: <90a2e6cb-1263-4272-b966-057c709f5a5e@gmx.de> (raw)
In-Reply-To: <b8819cdd-6924-4579-9d40-64325329d99a@app.fastmail.com>

Hi Mark,

You might want to look at org-mode's built I exporters and/or using "pandoc". pandoc supports Docbook both on input and output and org-mode on input and output.
I use a Makefile when combining Emacs/org and pandoc. Alternatively you might want to use the Emacs package org-pandoc (ox-pandoc?), which helps with integration.


To go from org to Docbook and DITA - which are both XML formats - I would probably use org's XHTML export and then do an XSLT transformation to the target format.
You might want to look at my web site
  https://web222.webclient5.de/doc/swdev/emacs/orgmode/html
It shows
1) How to customize the org HTML exporter
2) How to post-process the XHTML using an XSLT transformation (simple ELISP code included)

I do step 2) to further change the XHTML to my requirements. You would instead generate Docbook or DITA XML.

The main effort would be to develop the XSLT style sheets needed. Maybe somebody has already done that development work for HTML->Docbook and HTML->DITA


Regards "custom tags" (custom elements?):
- You can embed "raw HTML code" in org.
   I have not checked, but this might cover any custom XML element

- If the semantics of the custom tags are covered by built-in org
   constructs (like e.g. "properties", "tags") then you might be
   able to transform from org to XML like mentioned above


I guess "round trip" functionality would be quite a challenge compared to one way conversion.

Best regards
Thomas


--
Thomas Redelberger
redetho@gmx.de

Am 31.05.2024 um 08:59 schrieb Mark Lewin:
> Hi all,
>
> I'll shortly be starting a new role as a tech writer, where much of the docs are written in Docbook and DITA.
>
> I'm hoping to do the bulk of my work in org-mode and export to the required format.
>
> I've seen an exporter for Docbook, but I wonder if anyone has successfully used Emacs/org-mode to work with DITA content? Any recommendations? How are custom tags handled? And how can I best work with Docbook/DITA files that were created in another editor, like OxygenXML?
>
> Thanks in advance.
>
>


      reply	other threads:[~2024-05-31  8:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31  6:59 Org-mode for Docbook and DITA Mark Lewin
2024-05-31  8:30 ` Thomas Redelberger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=90a2e6cb-1263-4272-b966-057c709f5a5e@gmx.de \
    --to=redetho@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.