Refactoring topics using a custom doctype/framework
Post here questions and problems related to editing and publishing DITA content.
-
- 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
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
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Refactoring topics using a custom doctype/framework
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:
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
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'"/>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- 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!
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service