Page 1 of 1

Refactoring topics using a custom doctype/framework

Posted: Mon Mar 10, 2025 10:14 pm
by sabinebennett
Hi there,
We're using a custom DITA framework with custom DTDs and DOCTYPE declarations.
When use Oxygen to refactor let's say a concept topic into a task topic, Oxygen adds the default OASIS Doctype declaration at the top of the refactored topic. Is there a way to customize the refactor action in our custom DITA framework to use our custom DTDs?

Cheers,
Sabine

Re: Refactoring topics using a custom doctype/framework

Posted: Tue Mar 11, 2025 8:10 am
by Radu
Hello Sabine,

The topic type conversions are based on XSLT stylesheets.
For example this stylesheet "OXYGEN_INSTALL_DIR/frameworks/dita/refactoring/dita-files-conversion-stylesheets/convert-resource-to-task-entrypoint.xsl" defines three values for the root element name, DOCTYPE public and system IDs:

Code: Select all

    <xsl:variable name="root-element" select="'task'"/>
    <xsl:variable name="public-literal-target" select="'-//OASIS//DTD DITA Task//EN'"/>
    <xsl:variable name="system-literal-target" select="'task.dtd'"/>
So one could (besides making direct changes to the stylesheets) for example copy our XML refactoring actions for conversions and create their own with changed values.

Regards,
Radu

Re: Refactoring topics using a custom doctype/framework

Posted: Tue Mar 11, 2025 10:39 pm
by sabinebennett
Thanks so much for the quick reply, Radu. I'll give this a try!