Page 1 of 1

Docbook refentry conversion

Posted: Thu Nov 24, 2022 8:28 pm
by mike004
Looking to convert refentry content from DocBook XML to DITA.
The default DocBook to DITA transform does not work well. For example, it converts cmdsynopsis => syntaxdiagram
And syntaxdiagram is for flowcharts, I think.
Any suggestions?

Re: Docbook refentry conversion

Posted: Fri Nov 25, 2022 12:07 pm
by Cosmin Duna
Hi,
Thank you for contacting us.
I checked the DITA documentation for the "syntaxdiagram" element (https://www.oxygenxml.com/dita/1.3/spec ... agram.html) and it describes this element like this:
The syntax diagram represents the syntax of a statement from a computer language or a command, function call, or programming language statement.
What DITA element did you expect to obtain from "cmdsynopsis"?
Do you have any other examples when this didn't work well?

Best regards,
Cosmin

Re: Docbook refentry conversion

Posted: Fri Nov 25, 2022 5:18 pm
by mike004
I was expecting some kind of textual list output. Search the web for "syntax diagram" and you get a flow chart.
By the way, we are using DITA 1.2.

Re: Docbook refentry conversion

Posted: Mon Nov 28, 2022 12:19 pm
by Cosmin Duna
Hi,
The specification is the same for this element on DITA 1.2: https://docs.oasis-open.org/dita/v1.2/o ... agram.html.
Maybe you can create a custom refactoring operation based on XSLT that changes the "syntaxdiagram" elements from the DITA output with these lists:
https://www.oxygenxml.com/doc/versions/ ... tions.html

Best regards,
Cosmin

Re: Docbook refentry conversion

Posted: Tue Nov 29, 2022 8:10 pm
by mike004
Another reason that syntaxdiagram is a problem is that we are also looking to transform some topics from DITA -> troff.
And the troff DITA-OT transformation does not support syntaxdiagram, unfortunately.

Re: Docbook refentry conversion

Posted: Mon Dec 05, 2022 1:20 pm
by Cosmin Duna
Hi,
I registered an issue on the DITA-OT plugin that adds this transformation: https://github.com/dita-ot/org.dita.troff/issues/8

Best regards,
Cosmin