Headers can be specified for sections. See Sections. Each section can have a different header for the first page, odd pages, and even pages. Each header is specified in a Header part within the package. Each Header part is the target of an explicit relationship in the part-relationship item (document.xml.rels) for the main document part. That is, each header will be contained in a separate file within the package and the files will be referenced in document.xml.rels. The glossary can also have headers, and so the glossary may have explicit relationships for headers too.
Below are relationships in document.xml.rels for a first page header and a default header for all other pages in the section.
The Header part has a hdr root element which specifies the content for any header that references the Header part. The content of the hdr element is similar to that of the body element and contains block-level markup which can exist as a sibling element to paragraphs. Below is a sample header for the first page header of a section.
Below is the content of the header1.xml Header part.
Below is the content of the header2.xml Header part.
Below are the most important of the child elements of ftr.
Specifies a paragraph of content. See Paragraphs.
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 22.214.171.124.
Specifies the contents of a table. See Tables.
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.38.
A header in the ODF format is defined with a <style:header> element within a <style:master-page> element of the styles part. A <style:header> can contain a <table:table>, a <text:h>, a <text:list>, a <text:p>, a <text:section>, or a <text:table-of-content>, among other elements. Note that there is also a <style:header-left> element that can also be within a <style:master-page> if content for the header for the left page is different from the right.