p.task.context

Table of Contents

Syntax #

p.task.context

Purpose #

The p.task.context annotation is used to tag an element as being information explaining why a task is done a certain way, or why a task must be done. This information establishes the situation surrounding a task.

This annotation does not contain prerequisite information. For prerequisites, see p.task.prereq.

Examples #

The following is an example of a time where you might want to use the p.task.context annotation:

The following is an example of a rule that will apply p.task.context:

Note: this rule applies three annotations. In this example, Migrate will apply the s.simpletable.head.entry annotation only to a span which has the SimpleHeadChar style.

See s.simpletable.head.entry and delete-data-content for more information.

The following is the DITA XML output for the previous rule (relevant portion in bold):

 

<context><p>Peanut butter sandwiches are fine but can be boring. You can add extra ingredients to improve the sandwich and make it more enjoyable.</p></context>