create DITA 1.2 general task type

This should cover W3C XML Schema, Relax NG and DTD related problems.
Posts: 3

create DITA 1.2 general task type

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.
Posts: 5927

Re: create DITA 1.2 general task type

Wed Apr 28, 2010 8:39 am


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" "">
<task id="taskId">
    <title>Task title</title>
            <p>Context for the current task</p>
                <cmd>Task step.</cmd>

Radu Coravu
<oXygen/> XML Editor

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests