Footnote and Endnote Reference

Once footnote or endnote information is defined in the footnotes or endnotes part, this information must be associated with document text within the document in order to display the footnotes or endnotes. Each footnote or endnote is identified by a unique ID that references footnote or endnote definitions specified in the footnotes or endnotes part. Footnote or endnote references are identified by the <footnoteReference> or <endnoteReference> element within the text run's element (the <r >element). The <footnoteReference> or <endnoteReference> element points to the footnote or endnote ID defined in the footnotes or endnotes part.

Consider the following one-page document, where some text is referenced by a footnote at the end of the document page:

The footnote references text and is represented by the following WordprocessingML:

<w:p>
  <w:r>
    <w:t>Some referenced text</w:t>
  </w:r>
  <w:r>
    <w:rPr>
      <w:rStyle w:val="FootnoteReference" />
    </w:rPr>
    <w:footnoteReference w:id="2" />
  </w:r>
</w:p>

The footnote references the footnote in the footnotes part with ID equals to 2. Like any run, footnotes can be associated with a particular style, and, in this example, the run uses the FootnoteReference run style. The style of the footnote defines the look and numbering of the footnote.