create DITA 1.2 general task type

This should cover W3C XML Schema, Relax NG and DTD related problems.
ElemSrc
Posts: 3
Joined: Wed Apr 28, 2010 12:35 am

create DITA 1.2 general task type

Post by ElemSrc » Wed Apr 28, 2010 12:39 am

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.

Radu
Posts: 6507
Joined: Fri Jul 09, 2004 5:18 pm

Re: create DITA 1.2 general task type

Post by Radu » Wed Apr 28, 2010 8:39 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply