Section order in tasks

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jvazquez
Posts: 32
Joined: Thu Feb 17, 2011 10:06 pm

Section order in tasks

Post 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.)
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Section order in tasks

Post 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
Post Reply