Creating reference topics

In this topic you will create two reference 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/reference directory.
  2. Copy the cannedgoods.dita file to the "working" directory (working/reference).
  3. Using your authoring tool, open the "working" version of 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 refbody section, add a simple table showing product name, can size, and price for several canned goods products. Here is a suggestion:
    <section>
    <simpletable>
    <sthead>
    <stentry>Product</stentry>
    <stentry>Can size</stentry>
    <stentry>Price</stentry>
    </sthead>
    <strow>
    <stentry>Large black olives</stentry>
    <stentry>14 oz</stentry>
    <stentry>$2.39</stentry>
    </strow>
    <strow>
    <stentry>Small black olives</stentry>
    <stentry>6 oz</stentry>
    <stentry>$1.78</stentry>
    </strow>
    <strow>
    <stentry>Large green stuffed olives</stentry>
    <stentry>20 oz</stentry>
    <stentry>$4.56</stentry>
    </strow>
    <strow>
    <stentry>Small green plain olives</stentry>
    <stentry>8 oz</stentry>
    <stentry>$2.45</stentry>
    </strow>
    </simpletable>
    </section>
    				
  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/reference directory.
  9. Copy the produce.dita file to the "working" directory (working/reference).
  10. Using your authoring tool, open the "working" version of produce.dita.
  11. Edit the same prolog elements you did in the cannedgoods.dita file.
  12. In the refbody section, add a simple table showing product name, can size, and price for several produce items. Here is a suggestion:
    <section>
    <simpletable>
    <sthead>
    <stentry>Item</stentry>
    <stentry>Type</stentry>
    <stentry>Price</stentry>
    </sthead>
    <strow>
    <stentry>Apple</stentry>
    <stentry>Fuji</stentry>
    <stentry>$.88/lb</stentry>
    </strow>
    <strow>
    <stentry>Apple</stentry>
    <stentry>Granny Smith</stentry>
    <stentry>$1.05/lb</stentry>
    </strow>
    <strow>
    <stentry>Pear</stentry>
    <stentry>Bartlett</stentry>
    <stentry>$.74/lb</stentry>
    </strow>
    <strow>
    <stentry>Orange</stentry>
    <stentry>Valencia</stentry>
    <stentry>$1.46/lb</stentry>
    </strow>
    </simpletable>
    </section>
    				
  13. Save the changed file.
  14. If you have problems creating or validating your working file, compare it with the file by the same name in the completed directory.