### Formatting a catalog.

We now take the climbing catalog example with prices being added and incrementally create a series of PDF versions improving from one version to another.

No. 67

 Q: Write a XSL script to generate a starting version climbenriched.start.pdf. A:  Price: Order no:  Header, page numbers and table formatting Extend A first PDF version of the catalog by adding page numbers. The order number and prices shall be formatted as tables. Add a ruler to each page's head. The result should look like climbenriched.product.pdf A: Solution see catalog2fo.product.xsl. A table of contents. Each product description's page number shall appear in a table of contents together with the product's title as in climbenriched.toc.pdf. A: Solution see catalog2fo.toc.xsl. A table of contents with hypertext links. The table of contents' entries may offer hypertext features to supporting browsers as in climbenriched.toclink.pdf. In addition include the document's . A: Solution see catalog2fo.toclink.xsl. A final version. Add the following features: Number the table of contents starting with page i, ii, iii, iv and so on. Start the product descriptions with page 1. On each page's footer a text “page xx of yy” shall be displayed. This requires the definition of an anchor id on the FO document's last page. Add PDF bookmarks by using XEP's FO extensions. This requires the namespace declaration xmlns:rx="http://www.renderx.com/XSL/Extensions" in the XSLT script's header. The result may look like climbenriched.final.pdf. N.B.: It may take some effort to achieve this result. This effort is left to the interested participants. A: Solution see catalog2fo.toclink.xsl.