Page 1 of 1

create DITA 1.2 general task type

Posted: Wed Apr 28, 2010 12:39 am
by ElemSrc
It was my understanding that Oxygen 11.2 validates against the DITA 1.2 specification. However, I am trying to create a task topic and finding that Oxygen is apparently validating against either the 1.1 spec or the strict task topic type of 1.2. Did I misunderstand or is there something I need to do to set Oxygen to validate against the general task topic type of 1.2? Thanks.

Re: create DITA 1.2 general task type

Posted: Wed Apr 28, 2010 8:39 am
by Radu
Hi,

DITA Tasks are validated against the strict task topic type of DITA 1.2.
DITA General Tasks have a special document type public id (-//OASIS//DTD DITA General Task//EN) and Oxygen supports validating/editing them. Oxygen 12 will probably come with a new file template for easily creating a DITA General Task XML file.

For now you can save the XML below to the OXYGEN_INSTALL_DIR/frameworks/dita/templates/topic/ directory with the name General Task.xml and when creating a new file from templates you will also have the new General Task template available.

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA General Task//EN" "http://docs.oasis-open.org/dita/v1.1/OS/dtd/task.dtd">
<task id="taskId">
<title>Task title</title>
<shortdesc/>
<taskbody>
<context>
<p>Context for the current task</p>
</context>
<steps>
<step>
<cmd>Task step.</cmd>
</step>
</steps>
</taskbody>
</task>
Regards,
Radu