Create metadata variables for headers and footers

Create variables that pull in map metadata for use in headers and footers.

Before you get started with this exercise, be sure you’ve read DITA element classes.

Let’s look at how to pull metadata from a map and put it into a variable.

You’ll use root-processing.xsl for this and several other exercises in this chapter. root-processing.xsl contains, among other things, variables that you can use throughout the PDF generation process. These variables are defined at the beginning of the build process so they are available the whole way through.

  1. Add the following variable declaration to your copy of root-processing.xsl:
    <xsl:variable name="bc.productName"> <xsl:variable name="mapProdname" ...