Refactoring topics using a custom doctype/framework

Post here questions and problems related to editing and publishing DITA content.
sabinebennett
Posts: 6
Joined: Thu Dec 29, 2022 11:31 pm

Refactoring topics using a custom doctype/framework

Post 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
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: Refactoring topics using a custom doctype/framework

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sabinebennett
Posts: 6
Joined: Thu Dec 29, 2022 11:31 pm

Re: Refactoring topics using a custom doctype/framework

Post by sabinebennett »

Thanks so much for the quick reply, Radu. I'll give this a try!
Post Reply