Can the DocBook to DITA XML converter be customized?
Posted: Fri Oct 13, 2023 7:04 pm
Hi there,
first-time poster here - apologies if what I'm asking might be obvious to more experienced posters.
I'm wondering if the DocBook to DITA converter can be customized? Right now the only option available is the 'Create DITA maps from DocBook documents containing multiple sections' option.
For example, is there any way to customize the converter's behavior so that it does not blindly create a topic for every set of '<section></section>' XML tags?
Here's the structure of the DocBook XML file that I'm importing:
<section version="5.0" role="original-topic"...><title>Topic A</title>
<para>Blah blah...</para>
<section role="internal"><title>Section B</title>
<para>Blah blah...</para>
<section role="internal"><title>Subsection C</title>
<para>Blah blah...</para>
</section>
</section>
</section>
After importing this to DITA via the converter, the following topics are created:
- A top-level topic, 'Topic A'.
- A subtopic of 'Topic A' called 'Section B'.
- A subtopic of 'Section B'' called 'Subsection C'.
Instead, I would like to see one topic created (called 'Topic A') that contains a section ('Section B') that in turn contains a sectiondiv ('Subsection C'). Can this kind of thing be done and, if so, how?
first-time poster here - apologies if what I'm asking might be obvious to more experienced posters.
I'm wondering if the DocBook to DITA converter can be customized? Right now the only option available is the 'Create DITA maps from DocBook documents containing multiple sections' option.
For example, is there any way to customize the converter's behavior so that it does not blindly create a topic for every set of '<section></section>' XML tags?
Here's the structure of the DocBook XML file that I'm importing:
<section version="5.0" role="original-topic"...><title>Topic A</title>
<para>Blah blah...</para>
<section role="internal"><title>Section B</title>
<para>Blah blah...</para>
<section role="internal"><title>Subsection C</title>
<para>Blah blah...</para>
</section>
</section>
</section>
After importing this to DITA via the converter, the following topics are created:
- A top-level topic, 'Topic A'.
- A subtopic of 'Topic A' called 'Section B'.
- A subtopic of 'Section B'' called 'Subsection C'.
Instead, I would like to see one topic created (called 'Topic A') that contains a section ('Section B') that in turn contains a sectiondiv ('Subsection C'). Can this kind of thing be done and, if so, how?