Creating tasks

In this topic you will create two task topics based on templates already provided. You will be working in the DITASAMPLE_GROCERY_SOURCE directory. This topic assumes you are familiar with the information in About the grocery shopping sample.
  1. Go to the template/tasks directory.
  2. Copy the buying_cannedgoods.dita file to the "working" directory (working/tasks).
  3. Using your authoring tool, open the "working" version of buying_cannedgoods.dita.
  4. In the prolog section, change the text of the author element text to your name, the copyrholder element text to your company name, and the revised element text to the current date.
  5. In the taskbody section, add a series of steps to describe the process of buying a can of olives. Here is a suggestion:
    <context>Canned goods are usually stored 
    on grocery store shelves by type of food—for example, 
    all canned vegetables in one aisle and all canned fruits in another. 
    Say you are looking for canned olives:</context>
    <steps>
    <step>
    <cmd>Find the olive display by reading the directional signs 
    or asking a store clerk for help.</cmd>
    </step>
    <step>
    <cmd>Locate the type of olives you want to buy: 
    green or black.</cmd>
    <info>If you're looking for ingredients for a green salad, 
    green olives might be a better choice. 
    If you're making enchiladas, 
    look for cans of black olives.</info>
    </step>
    <step>
    <cmd>Check the sizes and prices 
    to determine the best buy.</cmd>
    <info>For example, if you're planning 
    to make enchiladas tonight and tacos on Friday, 
    a larger can would probably be a better buy.</info>
    </step>
    <step>
    <cmd>Select a can and look it over carefully to be sure 
    it has no dents that would cause the seal to be broken.</cmd>
    </step>
    <step>
    <cmd>Put the can in your cart, finish your shopping, 
    and check out.</cmd>
    </step>
    </steps>
    				
  6. Save the changed file.
  7. If you have problems creating or validating your working file, compare it with the file by the same name in the completed directory.
  8. Go back to the groceryshopping/template/tasks directory.
  9. Using your authoring tool, open the "working" version of buying_cannedgoods.dita.
  10. In the prolog section, change the text of the author element text to your name, the copyrholder element text to your company name, and the revised element text to the current date.
  11. In the taskbody section, add a series of steps about how to choose and buy peaches. Here is a suggestion:
    <prereq>Do your produce shopping <i>after</i> 
    you have selected your canned goods. 
    Otherwise, the cans might bruise 
    the fruits and vegetables!</prereq>
    <context>Remember to look for local produce 
    in season. 
    The fruits and vegetables you buy will be 
    fresher and cheaper! 
    Say you're shopping in August 
    for peaches grown locally. 
    When you get to the produce section 
    of your grocery store:</context>
    <steps>
    <step>
    <cmd>Get a plastic or paper bag 
    to hold the peaches.</cmd>
    </step>
    <step>
    <cmd>Pick out the freshest peaches you can find, 
    and put them gently into your bag.</cmd>
    <info>To avoid bruising, 
    don't put more than 6 peaches in each bag.</info>
    </step>
    <step>
    <cmd>Put the bag gently into your grocery cart.</cmd>
    </step>
    </steps>
    <postreq>When you check out, be sure the grocery clerk 
    also handles your peaches carefully.</postreq>
    				
  12. Save the changed file.
  13. If you have problems creating or validating your working file, compare it with the file by the same name in the completed directory.