Page 1 of 1

Section order in tasks

Posted: Tue Nov 08, 2011 11:14 pm
by jvazquez
Hi,

As far as I know, there is no order restrictions on the sections within a task. However, oXygen seems to want <example> after <result> which does not make sense. The editor should allow <result> after <example>. (The only section restriction that makes sense is <prereq> before <steps> and <postreq> last.)

Re: Section order in tasks

Posted: Wed Nov 09, 2011 5:55 pm
by sorin_ristache
Hi,

A DITA task uses [DITA-OT-folder]/dtd/technicalContent/dtd/task.dtd for validation and content completion which imports task.mod from the same folder which declares

Code: Select all

<!ENTITY % taskbody.content
"(((%prereq;) |
(%context;) |
(%section;))*,
((%steps; |
%steps-unordered; |
%steps-informal;))?,
(%result;)?,
(%example;)*,
(%postreq;)*)"
>
So example comes after result. This is the sequence required by the DITA DTD.


Regards,
Sorin