w:headerReference (Header Reference)

Links a header part to the section and specifies its type (default, first, or even).

Parent elements

Description

w:headerReference links a header part (stored as a relationship) to a section and specifies which page type it applies to. It is defined in ECMA-376 Part 1 §17.10.5.

The r:id attribute is an Open Packaging Conventions relationship ID pointing to a header{n}.xml part. The w:type determines whether the header applies to the default (odd) pages, the first page (when w:titlePg is set), or even pages (when w:evenAndOddHeaders is set).

Attributes

Attribute Type Possible Values Description
w:type ST_HdrFtr default (odd pages), first (first page), even (even pages) Specifies which page type this header applies to.
r:id ST_RelationshipId A relationship ID (e.g. rId1) referencing a wordprocessingml/header part. Points to the header XML part.

Examples

<w:headerReference w:type="default" r:id="rId1"/>
<w:headerReference w:type="first" r:id="rId2"/>