O'Reilly logo

DITA for Print by Leigh W. White

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

  1. Open root-processing.xsl.

    This file 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.

  2. Find this line:
    <xsl:variable name="relatedTopicrefs" select="//*[contains(@class, ' map/reltable ')]
    ¶//*[contains(@class, ' map/topicref ')]"/>

    This is where all the default variable definitions end. You’ll add all ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required