Table of Contents
More Resources
Adding Footer Attributes

Define attribute sets so that your footer displays as expected.
Before you can add new attribute-sets, you must add a footer template using the procedure in Editing a Footer Template.
While Editing a Footer Template, you added the new attribute-set __body__odd__footer. You need to define this attribute-set in the custom-attrs.xsl file (located in cfg/fo/attrs/) for your footer to display correctly.
  1. The only attribute set that the footer requires is odd__footer. Add this code to your custom-attrs.xsl file:

    Step Information
    < xsl:attribute-set name="odd__footer"> 
      < xsl:attribute name="text-align-last"> justify< /xsl:attribute> 
      < xsl:attribute name="font-family"> sans-serif< /xsl:attribute> 
      < xsl:attribute name="font-size"> 10pt< /xsl:attribute> 
      < xsl:attribute name="font-weight"> regular< /xsl:attribute> 
      < xsl:attribute name="color"> #888< /xsl:attribute> 
      < xsl:attribute name="padding-top"> 3pt< /xsl:attribute> 
      < xsl:attribute name="padding-bottom"> 15pt< /xsl:attribute> 
      < xsl:attribute name="margin-left"> 
        < xsl:value-of select="$page-margins"/> 
      < /xsl:attribute> 
      < xsl:attribute name="margin-right"> 
        < xsl:value-of select="$page-margins"/> 
      < /xsl:attribute> 
    < /xsl:attribute-set> 
    You may notice that in the custom-xsl.xsl file, we used the __body__odd__footer attribute set, not the odd__footer attribute set. However, because the __body__odd__footer attribute set inherits all the attributes from odd__footer, and odd__footer is used more generally, so it is more useful to edit this attribute set.
Now that your footer attribute is set, see Setting Global Variables to set up your variables and have a footer output like this: